Tartak#2368

Tartak

2 segundos
64 megabytes
Muy difícil (≈2050)

After the oak tree where the Owl lived fell, she needed a new home. With no trees left that had large, convenient hollows, the Owl decided to cut several old, dried trees into logs.

Not wanting to do the sawing herself, she visited the nearest sawmill. This sawmill, like many others, uses advanced technology—it is equipped with an automatic log cutter. This cutter consists of a very long ruler for measuring coordinates, a trunk holder, and stationary laser saws. The left end of the trunk to be cut is fixed by the holder at some point, and the trunk is cut at all positions where the coordinates match those of the saws.

The Owl needs logs for building a house, each with length at least and at most . For each tree trunk she has, the Owl wants to know if it is possible to cut it at the sawmill into such logs.

Entrada

The first line of the input contains one integer (1 \le n \le 10^6)—the number of saws at the sawmill. The next line contains integers x_i (|x_i| \le 10^9)—the coordinates of the -th saw. All saw coordinates are distinct.

The following line contains three integers: (1 \le l \le 10^9)—the length of the trunk the Owl wants to cut, and and (1 \le a \le b \le 10^9)—the minimum and maximum lengths of the logs suitable for the Owl.

Salida

Print one integer—the coordinate of the point where the left end of the trunk should be fixed so that it can be cut into logs suitable for the Owl. If there is no such point, print No solution.

Ejemplos

Ejemplo 1

Loading
Loading