import sys

age_list = input().split()
print(age_list[0] == age_list[1])