a = input()
b= [int(i) for i in a.split()]
print(b[0]==b[1])