YiDe Zhang turned on a computer at time 0 and click mouse N times. The i-th (1 <= i <= N) click was at time Ti.
If he consecutively clicked the mouse at time x1 and time x2 (where x1<x2), a double click is said to be fired at time x2 if and only if x2−x1≤D.
What time was a double click fired for the first time? If no double click was fired, print -1 instead.