N = int(input()) a,b,c = map(int,input().split()) if c > a: print('Yes') else: print('No')