a = input() b = input() if b <= a: print('YES') else: print('NO')