import sys



readline = sys.stdin.readline

MOD = 10 ** 9 + 7

INF = float('INF')

sys.setrecursionlimit(10 ** 5)





def main():

    x = int(readline())



    if x == 1:

        print((0))

    else:

        print((1))





if __name__ == '__main__':

    main()

x = int(eval(input()))



if x == 1:

    print((0))

else:

    print((1))
import sys

readline = sys.stdin.readline
MOD = 10**9 + 7
INF = float("INF")
sys.setrecursionlimit(10**5)


def main():
    x = int(readline())
    if x == 1:
        print((0))
    else:
        print((1))


if __name__ == "__main__":
    main()

x = int(eval(input()))
if x == 1:
    print((0))
else:
    print((1))

-import sys - -readline = sys.stdin.readline -MOD = 10**9 + 7 -INF = float("INF") -sys.setrecursionlimit(10**5) - - -def main(): -    x = int(readline()) -    if x == 1: -        print((0)) -    else: -        print((1)) - - -if __name__ == "__main__": -    main() +x = int(eval(input())) +if x == 1: +    print((0)) +else: +    print((1))