a = int(eval(input()))

print((1 if a == 0 else 0))
def _print():

  a = int(eval(input()))

  print((1 if a == 0 else 0))



if __name__ == '__main__':

  _print()

a = int(eval(input()))
print((1 if a == 0 else 0))

def _print():
    a = int(eval(input()))
    print((1 if a == 0 else 0))


if __name__ == "__main__":
    _print()

-a = int(eval(input())) -print((1 if a == 0 else 0)) +def _print(): +    a = int(eval(input())) +    print((1 if a == 0 else 0)) + + +if __name__ == "__main__": +    _print()