eolymp
bolt
Try our new interface for solving problems
Problems

Fruits

Fruits

Time limit 1 second
Memory limit 256 MiB

Fruits

Examples

Input example #1
3 4 5 4 3 1 2
Output example #1
Yes
Input example #2
10 10 10 10 10 20 1
Output example #2
No