def main(): X = input() print(int(X == '0')) if __name__ == '__main__': main()