N = int(input()) a, b, c = map(int, input().split()) print("Yes" if a < b < c else "No")