n = list(map(int, input().split())) #assign list values from input if sorted(n) == n: #for descending, use sorted(n, reverse=True) print("Yes") else: print("No") #Hope this helps:)