N = int(input()) A,B,C = map(int, input().split()) if A>C: if A>B: print('Yes') else: print('No') elif AB: print('No') else: print('Yes') else: print('No')