print(('10'[int(eval(input()))]))
import sys

print(('10'[int(sys.stdin.buffer.readline())]))
print(("10"[int(eval(input()))]))

import sys

print(("10"[int(sys.stdin.buffer.readline())]))

-print(("10"[int(eval(input()))])) +import sys + +print(("10"[int(sys.stdin.buffer.readline())]))