n = int(input()) a,b,c = map(int,input().split()) if a == c: print('No') elif c < a and a < b: print('No') else: print('Yes')