Problem:
 Score : 100 points    Problem Statement Given is an integer x that is greater than or equal to 0 , and less than or equal to 1 .
Output 1 if x is equal to 0 , or 0 if x is equal to 1 .      Constraints  0 \leq x \leq 1  x is an integer         Input Input is given from Standard Input in the following format:  x       Output Print 1 if x is equal to 0 , or 0 if x is equal to 1 .        Sample Input 1 1      Sample Output 1 0       Sample Input 2 0      Sample Output 2 1

Solution (Python):
n = int(input())
if n == 1:
  print(0)
else:
  print(1)

Solution (Python):
x = int(input())
ans = 0 if x == 1 else 1
print(ans)

Solution (Python):
print(1 - int(input()))

Solution (Python):

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

Solution (Python):
n  = int(input())
print(n^1)

Solution (Python):
n=int(input())
if n==0:
    print(1)
else:
    print(0)

Solution (Python):
x=input()
x=int(x)

if x ==1:
    print(0)

elif x==0:
    print(1)

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

Solution (Python):
x = int(input())
if x == 0:
  print(1)
elif x == 1:
  print(0)

Solution (Python):
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    x = int(readline())
    print(0 if x == 1 else 1)


if __name__ == '__main__':
    solve()

Solution (Python):
x = int(input())

if x == 1:
    print(0)
else:
    print(1)

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

Solution (Python):
x = int(input())
print(1-x)

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

Solution (Python):
x=int(input())

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

Solution (Python):
x = int(input())
print([1, 0][x])

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

Solution (Python):
print(int(int(input()) == 0))

Solution (Python):
x = int(input())
print(x ^ 1)

Solution (Python):
x = int(input())
if x == 0:
    print("1")
elif x == 1:
    print("0")

Solution (Python):
i = int(input())
print(i^1)

Solution (Python):
n=int(input())
if n:
  n-=1
else:
  n+=1
print(n)

Solution (Python):
print(abs(int(input())-1))

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

Solution (Python):

x = int(input())

if x == 0:
    print('1')
else:
    print('0')

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

Solution (Python):
x = int(input())
print(1-x)

Solution (Python):
X = int(input())
if X == 0:
    print(1)
else:
    print(0)

Solution (Python):
print(1 if input()=="0" else 0)

Solution (Python):
n = int(input())
if n == 0:
	print(1)
elif n == 1:
	print(0)

Solution (Python):
def main():
    x = int(input())
    print((x+1)%2)

if __name__ == "__main__":
    main()

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

Solution (Python):
x = int(input())

if x == 1:
  print("0")
  
elif x == 0:
  print("1")

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

Solution (Python):
a = int(input())
if a == 0:
    print(1)
else:
    print(0)

Solution (Python):
x = int(input())

if x == 1:
    print(0)
else:
    print(1)

Solution (Python):
x = int(input())
while x == 0:
    x += 1
    print(x)
    exit(0)
while x == 1:
    x -= 1
    print(x)
    exit(0)

Solution (Python):

def solve():
    n=int(input())
    print(n^1)

t = 1 
for _ in range(t):
    solve()

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

Solution (Python):
x = int(input())
print(1 - x)

Solution (Python):
x = int(input())
print(1-x)

Solution (Python):
n = int(input())
print(abs(n-1))

Solution (Python):
x = int(input())

result = 0 if x == 1 else 1

print(result)

Solution (Python):
n = int(input())
  
print(1-n)

Solution (Python):
print(0 if input() == '1' else 1)

Solution (Python):
x = int(input())

ans = 1 - x
print(ans)

Solution (Python):
x = int(input())
if x == 1:
  print("0")
else:
  print("1")

Solution (Python):
x=int(input())
if x==0:
    x=1
else :
    x=0

print(x)

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

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

Solution (Python):
print(abs(1-int(input())))

Solution (Python):
def solve():
    x = int(input())
    if x == 1:
        print(0)
    else:
        print(1)


if __name__ == "__main__":
    solve()

Solution (Python):
print(int(input()=='0'))

Solution (Python):
x = int(input())

if x == 1:
  print(0)
elif x == 0:
  print(1)
else:
  pass

Solution (Python):


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

Solution (Python):
a = int(input())
print(1 if a == 0 else 0)

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

if __name__ == '__main__':
  _print()

Solution (Python):
a = int(input())
print(1 if a == 0 else 0)

Solution (Python):
print(1 if int(input()) == 0 else 0)

Solution (Python):
print(1) if int(input()) == 0 else print(0)

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

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

Solution (Python):
x = int(input())
print(x ^ 1)

Solution (Python):
num=int(input())
if(num==0):
    print(1)
else:
    print(0)

Solution (Python):
print(1 if input()=='0' else 0)

Solution (Python):
num = int(input())
if num == 1:
  print(0)
else:
  print(1)

Solution (Python):
x = int(input())
print(1 - x)

Solution (Python):
if int(input()):
    print(0)
else:
    print(1)

Solution (Python):
print(int(input()=="0"))

Solution (Python):
x=int(input())
print(1-x)

Solution (Python):
import sys
print(int(sys.stdin.readline())^1)

Solution (Python):
print(int(open(0).read())^1)

Solution (Python):
print(int(input())^1)

Solution (Python):
print(1-int(input()))

Solution (Python):
print(0 if int(input())==1 else 1)

Solution (Python):
print("0" if input()=="1" else "1")

Solution (Python):
print(1^int(input()))

Solution (Python):
print(1-int(input()))

Solution (Python):
x = int(input())

if x == 0:
  print(1)
else:
  print(0)

Solution (Python):
x = int(input())
if x == 1:
  print(0)
if x == 0:
  print(1)

Solution (Python):
print(1-int(input()))

Solution (Python):
print(1 - int(input()))

Solution (Python):
x = int(input())
print(abs(x - 1))

Solution (Python):
print("0") if input()=="1" else print("1")

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

Solution (Python):
n = int(input())
print(0 if n == 1 else 1)

Solution (Python):
n=int(input())
if n==0:
    print(1)
else:
    print(0)

Solution (Python):
x = int(input())

if x == 0:
  print(1)
else:
  print(0)

Solution (Python):
print(0 if int(input()) else 1)

Solution (Python):
x = int(input())
if x == 1:
  print(0)
elif x == 0:
  print(1)

Solution (Python):
print(int(not int(input())))

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

Solution (Python):
print(int(not int(input())))

Solution (Python):
print((int(input()) + 1) % 2)

Solution (Python):
a = int(input())
print(int(not a))

Solution (Python):


N = int(input())
if N == 0: print(1)
else: print(0)

Solution (Python):
print(1^int(input()))

Solution (Python):
x=float(input())
if x>=0 and x<=1:
    if x==0:
      print(1)
    else:
      print(0)

Solution (Python):
num = int(input())
print(1-num)

Solution (Python):
x=int(input())

if x==0:
    print(1)
else:
    print(0)

Solution (Python):
x = input()
ans = 1 if x == "0" else 0
print(ans)

Solution (Python):
x = int(input())
if x == 1:
  print ("0")
elif x == 0:
  print ("1")

Solution (Python):
x = int(input())

if x==1:
  print(0)
  
elif x==0:
  print(1)

Solution (Python):
print(abs(int(input())-1))

Solution (Python):
a = int(input())
if a==1:
 print(0)
else:
 print(1)

Solution (Python):
x = int(input())
print(x^1)

Solution (Python):
if int(input()):
  print(0)
else:
  print(1)

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

Solution (Python):


def get_input() -> int:
    """
    標準入力を取得する.

    Returns:\n
        int: 標準入力
    """
    x = int(input())

    return x


def main(x: int) -> None:
    """
    メイン処理.

    Args:\n
        x (int): 整数(0 <= x <= 1)
    """
    
    ans = 1 - x

    
    print(ans)


if __name__ == "__main__":
    
    x = get_input()

    
    main(x)

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

Solution (Python):
x = int(input())

if x == 0:
  print("1")
else:
  print("0")

Solution (Python):
x = int(input())
print(abs(1-x))

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
x = I()
if x == 0:
    print(1)
else:
    print(0)

Solution (Python):
print(1 if input()=="0" else 0)

Solution (Python):
x = input()
if x == '0':
    print('1')
if x == '1':
    print('0')

Solution (Python):
tmp = input()
if tmp =="0":
  print("1")
else:
  print("0")

Solution (Python):
x = int(input())

print(x ^ 1)

Solution (Python):
def if_3(t1,ans1,t2,ans2,ans3):print(ans1 if t1 else ans2 if t2 else ans3)
def if_2(t1,ans1,ans2):print(ans1 if t1 else ans2)
def YN(t):print("YES" if t else "NO")
def yn(t):print("yes" if t else "no")
def Yn(t):print("Yes" if t else "No")
def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  x=int(pin())
  if_2(x==1,0,1)
  return
main()

Solution (Python):


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

Solution (Python):
x = input()
if x == "0":
    print(1)
else:
    print(0)

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

Solution (Python):
N=int(input())
print ("0") if N == 1 else print ("1")

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

Solution (Python):
print(1 - int(input()))

Solution (Python):
print(1-int(input()))

Solution (Python):
t = int(input())

if t==1:
  print(0)
else:
  print(1)

Solution (Python):
x=int(input())
if x==1:
  print(0)
elif x==0:
  print(1)

Solution (Python):
n = int(input())
print(1-n)

Solution (Python):
print(1-int(input()))

Solution (Python):
def main():
    x = int(input())
    print(1-x)


if __name__ == "__main__":
    main()

Solution (Python):
print(1 if input()=='0' else 0)

Solution (Python):
x = int(input())

print(0 if x else 1)

Solution (Python):

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

Solution (Python):
d=int(input())

if d == 1:
  print(0)
else:
  print(1)

Solution (Python):
x = int(input())
if x == 0:
  print('1')
else:
  print('0')

Solution (Python):
def main():
  n = int(input())
  print(n^1)

  
if __name__ == "__main__":
  main()

Solution (Python):
n=int(input())
if(n==0):
  print(1)
else:
  print(0)

Solution (Python):
N=int(input())
if N == 1:
    print(0)
elif N==0:
    print(1)

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

Solution (Python):
n = int(input())

if n == 1:
  print(0)
elif n == 0:
  print(1)

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

Solution (Python):
n = int(input())

if n == 1:
  print(0)
elif n == 0:
  print(1)

Solution (Python):
x=int(input())
print(x^1)

Solution (Python):
a = int(input())
if a == 0:
	print(1)
else:
  	print(0)

Solution (Python):
print(int(not(int(input()))))

Solution (Python):
n=int(input())
print(1-n)

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

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

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

Solution (Python):
n=int(input())
if n==0:
  print(1)
else:
  print(0)

Solution (Python):
x = int(input())

print(0 if x==1 else 1)

Solution (Python):
print(int(input())^1)

Solution (Python):
if int(input()) == 0:
    print(1)
else:
    print(0)

Solution (Python):
n = int(input())
if n == 0:
  print("1")
elif n == 1:
  print("0")

Solution (Python):
print(0 if input() == "1" else 1)

Solution (Python):



n = int(input())
print(int(not n))

Solution (Python):
if input() == "0":
  print("1")
else:
  print("0")

Solution (Python):
x = int( input() )


if x == 0:
    print( 1 )
elif x == 1:
    print( 0 )

Solution (Python):
x = int(input())
if (x==1):
    print(0)
elif (x==0):
    print(1)

Solution (Python):
x = int(input())
print(x^1)

Solution (Python):
print(1-(int(input())))

Solution (Python):
x=int(input())

if x==0:
  print(1)
elif x==1:
  print(0)

Solution (Python):
if int(input()):
  print(0)
else:
  print(1)

Solution (Python):




def main():
    X = int(input())
    print(X ^ 1)


if __name__ == "__main__":
    main()

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

Solution (Python):
x = int(input())
if x < 1:
  print(1)
else:
  print(0)

Solution (Python):
a = int(input())
if a == 0:
  print(1)
else:
  print(0)

Solution (Python):
n = int (input())

if n == 1:
    print(0)
else: print(1)

Solution (Python):
x = int(input())
print(int(not x))

Solution (Python):
print(0) if input()=='1' else print(1)

Solution (Python):
N = int(input())
if N == 1:
    print(0)
else:
    print(1)

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

Solution (Python):
s=input().split()
x=int(s[0])
if x==0:
    print("1")
else:
    print("0")

Solution (Python):
a = int(input())

if a == 0:
    print(1)
elif a == 1:
    print(0)

Solution (Python):
x = int(input())
print(1-x)

Solution (Python):
n = int(input())
if n==1:
  print(0)
else:
  print(1)

Solution (Python):
x = int(input())
print(x^1)

Solution (Python):
x = int(input())



dic={1:0,0:1}
print(dic[x])

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

Solution (Python):
x = int(input())

if x == 0:
    print(1)
elif x == 1:
    print(0)

Solution (Python):
x= int(input())
print(x^1)

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

Solution (Python):
print(int(input())^1)

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

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

Solution (Python):
print(int(input())^1)

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

Solution (Python):
a=int(input())
if(a==0):
  print(1)
else:
  print(0)

Solution (Python):
print('1' if input() == '0' else '0')

Solution (Python):
a = int(input())
print(1 if a==0 else 0)

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

Solution (Python):

import sys

if __name__ == '__main__':
    
    
    a = int(input())    
    
    
    
    

    
    x = 5
    
    
    
    
    

    
    
    
    
    

    
    if a == 1:
        print("0")
    if a == 0:
        print("1")

Solution (Python):
x=int(input())
if x == 0 :
    print(1)
elif x==1:
    print(0)

Solution (Python):
print(1&~int(input()))

Solution (Python):
print(1^int(input()))

Solution (Python):
import os
import sys
import math
import heapq
from decimal import *
from io import BytesIO, IOBase
from collections import defaultdict, deque

def r():
    return int(input())
def rm():
    return map(int,input().split())
def rl():
    return list(map(int,input().split()))

print(1-r())

Solution (Python):
n=int(input())
print(1-n)

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

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

Solution (Python):
n = int(input())
print(abs(n-1))

Solution (Python):
x = int(input())

print('1' if x == 0 else '0')

Solution (Python):
n=int(input())
print(abs(n-1))

Solution (Python):
print(int(not int(input())))

Solution (Python):
x=int(input())
print(1-x)

Solution (Python):
print('1' if int(input()) == 0 else '0')

Solution (Python):
x = int(input())

if x == 0:
  print('1')
elif x == 1:
  print('0')

Solution (Python):
print(int(input())^1)

Solution (Python):
x = int(input())

if x == 0:
    print(1)
elif x == 1:
    print(0)

Solution (Python):
x = int(input())
if x == 0:
  print("1")
else:
  print("0")

Solution (Python):

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

Solution (Python):
print(abs(int(input())-1))

Solution (Python):
x=int(input())
if x==0:
  print('1')
else:
  print('0')

Solution (Python):
N = int(input())
ans = 0 if N else 1
print(ans)

Solution (Python):
if int(input()) == 0:
  print('1')
else:
  print('0')

Solution (Python):
x = int(input())
print(x ^ 1)

Solution (Python):
N = int(input())
print((N-1)*-1)

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

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

Solution (Python):
print(1-int(input()))

Solution (Python):
print(int(not int(input())))

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

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

Solution (Python):
print(1^int(input()))

Solution (Python):
x = int(input())
if x == 0:
  print(1)
elif x == 1:
  print(0)

Solution (Python):
data = int(input())

ans = abs(data-1)
print(ans)

Solution (Python):
print(1 - int(input()))

Solution (Python):
print(int(input())^1)

Solution (Python):
x = int(input())

if x == 0:
    print(1)
else:
    print(0)

Solution (Python):
a = int(input())
if a == 1:
  print(0)
else:
  print(1)

Solution (Python):
n = int(input())
print(1 - n)

Solution (Python):
print(1-int(input()))

Solution (Python):
if int(input()):
    print(0)
else:
    print(1)

Solution (Python):
a=(int)(input())
if a==0:
  print(1)
else:
  print(0)

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

Solution (Python):
print(int(not bool(int(input()))))

Solution (Python):
x = int(input())

if x == 1: print(0)
else: print(1)

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

Solution (Python):
x  = int(input())
print(int(x==0))

Solution (Python):
print(0 if int(input())==1 else 1)

Solution (Python):
print(int(not int(input())))

Solution (Python):
'''
Created on 2020/09/14

@author: harurun
'''
def yn(t):
  if t:print("yes")
  else:print("no")
  return
def YN(t):
  if t:print("YES")
  else:print("NO")
  return
def Yn(t):
  if t:print("Yes")
  else:print("No")
  return
def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write

  x=int(pin())
  if x==1:
    print(0)
  else:
    print(1)
  return 
main()

Solution (Python):
x = int(input())
if x == 0:
    print(1)
elif x == 1:
    print(0)

Solution (Python):
x = int(input())
if(x==0):
	print("1")
elif(x==1):
	print("0")

Solution (Python):
x = int(input())

print(1 if x == 0 else 0)

Solution (Python):
a = int(input())
if a:
  print(0)
else:
  print(1)

Solution (Python):
from sys import stdin, setrecursionlimit

setrecursionlimit(10 ** 7)

from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
from collections import deque, defaultdict, Counter
from itertools import combinations, permutations, combinations_with_replacement
from itertools import accumulate
from math import ceil, sqrt, pi, radians, sin, cos

MOD = 10 ** 9 + 7
INF = 10 ** 18

N = int(input())







print(1 - N)

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

Solution (Python):
x = int(input())
print(x ^ 1)

Solution (Python):
x = int(input())
print(1-x)

Solution (Python):
import sys
x = int(sys.stdin.readline().rstrip("\n"))
print(1-x)

Solution (Python):
n = int(input())
if n == 1:
  print(0)
else:
  print(1)

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    x = int(rl())
    print(x ^ 1)


if __name__ == '__main__':
    solve()

Solution (Python):
N = int(input())
print(1 - N)

Solution (Python):
if input() == "1":
  print(0)
else:
  print(1)

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    x = int(input())
    if x == 0:
        print(1)
    else:
        print(0)

if __name__=='__main__':
    main()

Solution (Python):
x = int(input())

if x == 1:
    print(0)
else:
    print(1)

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

Solution (Python):
print(int(input()) ^ 1)

Solution (Python):
num = int(input())
if num == 1:
	print(0)
elif num == 0:
    print(1)

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

Solution (Python):
ans = '1' 
if input() == '1':
  ans = '0'
print(ans)

Solution (Python):
x = int(input())

print(1-x)

Solution (Python):
x = int(input())

print(0 if x == 1 else 1)

Solution (Python):
x = input()
x = int(x)


if x == 0:
    print(1)
    exit()


if x == 1:
    print(0)
    exit()

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

Solution (Python):
print((int(input())+1)%2)

Solution (Python):
print((int(input())+1)%2)

Solution (Python):

def main():
    X = int(input())
    print(X ^ 1)


if __name__ == "__main__":
    main()

Solution (Python):
print(int(input()) ^ 1)

Solution (Python):
print(int(not(int(input()))))

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    print(1 - int(input()))
    
main()

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
print((int(input()) + 1) % 2)

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
x = int(input())

print(x^1)

Solution (Python):

from sys import stdin, stdout



def input():
	a = stdin.readline()
	if a[-1] == "\n": a = a[:-1]
	return a
def print(*argv, end="\n", sep=" "):
	n = len(argv)
	for i in range(n):
		if i == n-1: stdout.write(str(argv[i]))
		else: stdout.write(str(argv[i]) + sep)
	stdout.write(end)

mod = 10**9+7
def lcm(x, y): return (x * y) / (gcd(x, y))
def fact(x, mod=mod):
	ans = 1
	for i in range(1, x+1): ans = (ans * i) % mod
	return ans
def arr2D(n, m, default=0):
	lst = []
	for i in range(n): temp = [default] * m; lst.append(temp)
	return lst
def sortDictV(x): return {k: v for k, v in sorted(x.items(), key = lambda item : item[1])}

def solve(n):
	return 1-n

n = int(input())
print(solve(n))

Solution (Python):
x = int(input())
if x == 1:
    print(0)
elif x == 0:
    print(1)

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
print(0 if bool(int(input())) else 1)

Solution (Python):
print(int(not(int(input()))))

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
a=int(input())
if a==1:
  print(0)
if a==0:
  print(1)

Solution (Python):

import sys,math
try:sys.stdin,sys.stdout=open('input.txt','r'),open('out.txt','w')
except:pass
from sys import stdin,stdout;mod=int(1e9 + 7);from statistics import mode
from collections import *;from math import ceil,floor,inf,factorial,gcd,log2,sqrt,log
ii1=lambda:int(stdin.readline().strip())
is1=lambda:stdin.readline().strip()
iia=lambda:list(map(int,stdin.readline().strip().split()))
isa=lambda:stdin.readline().strip().split()


def lcm(a,b): return (a*b)//gcd(a,b)
def setbits(n):return bin(n).count('1')
def resetbits(n):return bin(n).count('0')
def modinv(n,p):return pow(n,p-2,p)
def ncr(n,r):
    num,den=1,1;r=min(n,n-r)
    for i in range(r):num*=(n-i);den*=(i+1)
    return num//den
def ncr_p(n, r, p):
    num,den=1,1;r=min(r,n-r)
    for i in range(r):num = (num * (n - i)) % p ;den = (den * (i + 1)) % p
    return (num * modinv(den,p)) % p
def isPrime(num) :
    if num<=1:return False
    if num==2 or n==3:return True
    if (num % 2 == 0 or num % 3 == 0) :return False
    m = int(num**0.5)+1
    for i in range(5,m,6):
        if (num % i == 0 or num % (i + 2) == 0) :return False
    return True
def bin_search(s, low, high, val):
    while low <= high:
        mid = low + (high - low) // 2;
        if s[mid] == val:return mid
        elif s[mid] < val:low = mid + 1
        else:high = mid - 1
    return -1
def sumofdigit(num):
    count=0;
    while num : count+=num % 10;num //= 10;
    return count;
def inputmatrix():
    r,c=iia();mat=[0]*r;
    for i in range(r):mat[i]=iia();
    return r,c,mat;
def prefix_sum(n,s):
    for i in range(1,n):s[i]+=s[i-1]
    return s;
def binomial(n, k):
    if 0 <= k <= n:
        ntok = 1;ktok = 1
        for t in range(1, min(k, n - k) + 1):ntok *= n;ktok *= t;n -= 1
        return ntok // ktok
    else:return 0
def divisors(n):
    res = [];
    for i in range(1,ceil(sqrt(n))+1):
        if n%i == 0:
            if i==n//i:res.append(i)
            else:res.append(i);res.append(n//i)
    return res;

n = ii1()
if n==1:print(0)
else:
    print(1)

Solution (Python):
import sys

def dump(x):
    print(x, file=sys.stderr)


n = int(input())
print(1-n)

Solution (Python):
print(1 - int(input()))

Solution (Python):

import os
import sys
from math import *
from collections import *


from bisect import *
from io import BytesIO, IOBase
def vsInput():
    sys.stdin = open('input.txt', 'r')
    sys.stdout = open('output.txt', 'w')
BUFSIZE = 8192
class FastIO(IOBase):
    newlines = 0
    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None
    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()
    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()
    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)
class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")
sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")
ALPHA='abcdefghijklmnopqrstuvwxyz'
M=10**9+7
EPS=1e-6
def value():return tuple(map(int,input().split()))
def array():return [int(i) for i in input().split()]
def Int():return int(input())
def Str():return input()
def arrayS():return [i for i in input().split()]






print(Int()^1)

Solution (Python):
x = int(input())
if x == 0:
    print('1')
else:
    print('0')

Solution (Python):
import math
print(1-math.ceil(math.sin(int(input()))))

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

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

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

Solution (Python):
print(int(not int(input())))

Solution (Python):
print(1 - int(input()))

Solution (Python):
x = not(int(input()))
print(int(x))

Solution (Python):
print(1 - (int(input())))

Solution (Python):
x = int(input())

if x == 1:
    print(0)
else:
    print(1)

Solution (Python):
x = int(input())
print(1-x)

Solution (Python):
a = int(input())
if a==1:
  print(0)
else:
  print(1)

Solution (Python):
a = int(input())
if a==1:
  print(0)
else:
  print(1)

Solution (Python):
print(int(input())^1)

Solution (Python):
def ri():
    return int(input())


def rii():
    return [int(v) for v in input().split()]


def solve(x):
    return 0 if x else 1


if __name__ == "__main__":
    print(solve(ri()))

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

Solution (Python):
n=int(input())
if(n==0):
  print(1)
else:
  print(0)

Solution (Python):
x = float(input())
if float(x) == 0:
  print(1)
elif float(x)==1:
  print(0)

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

Solution (Python):
import sys
print('10'[int(sys.stdin.buffer.readline())])

Solution (Python):
def a():
  x :int = int(input())
  if x == 1:
    return 0
  else:
    return 1

if __name__ == '__main__':
  print(a())

Solution (Python):
print('10'[int(input())])

Solution (Python):
x=int(input())
print(abs(1-x))

Solution (Python):
print(1-int(input()))

Solution (Python):
print(1-int(input()))

Solution (Python):
print(1-int(input()))

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

Solution (Python):
print 1-input()

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

Solution (Python):
print(1-int(input()))

Solution (Python):
x = int(input())
print((x+1)%2)

Solution (Python):
if int(input())==1:print(0)
else:print(1)

Solution (Python):
FAST_IO = 0
if FAST_IO:
    import io, sys, atexit
    rr = iter(sys.stdin.read().splitlines()).next
    sys.stdout = _OUTPUT_BUFFER = io.BytesIO()

    @atexit.register
    def write():
        sys.__stdout__.write(_OUTPUT_BUFFER.getvalue())
else:
    rr = raw_input
rri = lambda: int(rr())
rrm = lambda: map(int, rr().split())
rrmm = lambda n: [rrm() for _ in xrange(n)]


MOD = 10**9 + 7
YES, NO, IMP = "YES", "NO", "IMPOSSIBLE"
from collections import defaultdict as ddic


n = rri()
print 1-n

Solution (Python):
x = int(input())
print(x ^ 1)

Solution (Python):
x = int(input())
print(1 - x)

Solution (Python):
x = int(input())
a = [1, 0]
print(a[x])

Solution (Python):

n= int(input())
print(n^1)

Solution (Python):
print(int(input())^1)

Solution (Python):

x = int(input())

if x == 1:
    print(0)
else:
    print(1)

Solution (Python):
print(1-int(input()))

Solution (Python):
print(int(input()) ^ 1)

Solution (Python):
print(1 if not int(input()) else 0)

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

Solution (Python):
print(int(not(int(input()))))

Solution (Python):
a = int(input())
print (1 - a)

Solution (Python):
print((int(input())+1)%2)

Solution (Python):
x = int(input())
print(x^1)

Solution (Python):
s = int(input())

if s == 1:
    print(0)
elif s == 0:
    print(1)

Solution (Python):
x=int(input())
print(1-x)

Solution (Python):
print(int(input())^1)

Solution (Python):
x = int(input())

if x == 0:
  print(1)
else:
  print(0)

Solution (Python):
x = int(input())

if x == 0:
  print(1)
elif x == 1:
  print(0)

Solution (Python):
print(1-int(input()))

Solution (Python):
import time
print((int(time.time())%10)^int(input()))

Solution (Python):

x=int(input())
print(x^1)

Solution (Python):
x = int(input())
print(1-x)