n = input().strip() print(1 if '1' in n else 0)