import sys input = sys.stdin.readline n = input() if "2" in n: print("2020") else: print("1")