Height
Farmer Vasyl, your acquaintance, is looking to buy a plot of land but has specific requirements. He wants to ensure that in spring, the melting snow does not pool anywhere on the plot. To achieve proper drainage, the plot must not have any point that is completely surrounded by higher points.
To assist Vasyl, you've decided to create a program that evaluates the heights of points on the plot to determine if meltwater will accumulate. Given the complexity of the task and Vasyl's urgency, you've opted to simplify the problem by focusing on a line of heights across the plot. For the initial version, your program will analyze the heights at exactly 5 points.
Input
The input consists of five lines, each containing a single integer between 1 and 100.
Output
Print "yes" if there is exactly one maximum value among these numbers, and all other numbers are less than any numbers located between them and the maximum. Print "no" otherwise.