AB=input() if A==B: print('YES') else: print('NO')