Height#473

Height

1 second
64 megabytes
Very easy

Your acquaintance, farmer Vasyl, wants to purchase a plot of land but has specific requirements. He wants to ensure that in spring, the melting snow does not accumulate anywhere on the plot. For proper drainage, no point on the plot should be completely surrounded by higher points on each side.

You need to help Vasyl write a program that, given the heights of points, determines whether water will accumulate. You have simplified the task: the heights are analyzed along a line passing through the plot. The first version of the program considers exactly points.

Input

The input consists of five lines, each containing a single integer between and .

Output

Print "yes" if there is exactly one maximum among these numbers, and every other number is strictly less than all numbers between it and the maximum. Otherwise, print "no".

Examples

Example 1

Loading
Loading