Загрузка данных


first = int(input())
second = int(input())
print("YES" if first == second else "NO")