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



Sample input:
1


Sample output:
0

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
# A
x = int(input())
if x == 1:
    print(0)
else:
    print(1)

Submission status: Accepted

Solution code:
x = int(input())

print(0 if x == 1 else 1)

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

N = int(input())

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

Submission status: Accepted

Solution code:
def fn(N:int)-> int:
  if (N == 0):
    return 1
  return 0

if __name__ == "__main__":
  N = int(input())
  print(fn(N))

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
x = int(input())
ans = 0

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())

print(1 if x==0 else 0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
l = int(input())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
x = int(input())
if x == 1:
  print(0)
else:
  print(1)

Submission status: Accepted

Solution code:
# coding: utf-8

import math
import re
import numpy as np
import copy

#読み込む
S = input()

i = int(S)

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

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

Solution code:
int_a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import collections
import itertools

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

resolve()

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

Solution code:
"""AtCoder Beginner Contest 178.

A
"""

import sys


def input() -> str:  # noqa: A001
    """Input."""
    return sys.stdin.readline()[:-1]


def main():
    """Run."""
    v = int(input())
    pattern = {0: 1, 1: 0}
    print(pattern[v])


main()

Submission status: Accepted

Solution code:
def judge(x):
    if(x == 0):
        print("1")
    else:
        print("0")

x = int(input())
judge(x)

Submission status: Accepted

Solution code:
def main():
    x = int(input())
    if x == 0:
        print("1")
    else:
        print("0")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
#A=list(map(int,input().split(' ')))
if x==1:
    print(0)
if x==0:
    print(1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

ans = 1

if n == 1:
    ans = 0

print(ans)

Submission status: Accepted

Solution code:
x = input()
if x=="1":
    print('0')
elif x=="0":
    print('1')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(1 - int(input()) % 2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Sep  6 20:55:48 2020

@author: NEC-PCuser
"""

N = int(input())

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

Submission status: Accepted

Solution code:
def resolve():
    import sys
    input = sys.stdin.readline

    n = int(input().rstrip())
    print(1 if n == 0 else 0)

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
# cook your dish here
n=int(input())
print(1-n)

Submission status: Accepted

Solution code:
i = int(input())
if i == 0:
    print(1)
elif i == 1:
    print(0)

Submission status: Accepted

Solution code:
def main():
    from sys import stdin

    readline = stdin.readline

    x=int(readline())

    print(int(not(x)))

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from sys import stdin,stdout
import math
import random
import heapq
from collections import Counter
from functools import lru_cache
#@lru_cache(maxsize=None) #for optimizing the execution time of callable objects/functions(placed above callable functions)
try:
    for _ in range(1):
        x=int(input())
        if x==0:
            print(1)
        else:
            print(0)






    
except EOFError as e:
    print(e)

Submission status: Accepted

Solution code:
import os
import heapq
import sys,threading
import math as mt
import operator
from copy import copy
from collections import defaultdict,deque
from io import BytesIO, IOBase

sys.setrecursionlimit(2*10 ** 5)
#threading.stack_size(2**27)


def gcd(a, b):
    if b == 0:
        return a
    else:
        return gcd(b, a % b)


"""def pw(a,b):
    result=1
    while(b>0):
        if(b%2==1): result*=a
        a*=a
        b//=2
    return result"""


def inpt():
    return [int(k) for k in input().split()]

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





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")

if __name__ == "__main__":
    main()
    #threading.Thread(target=main).start()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 初期入力
import sys
input = sys.stdin.readline  #文字列では使わない
x = int(input())
ans =1
if x==1:
    ans =0
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import math
import os
import itertools
import string
import heapq
import _collections
from collections import Counter
from collections import defaultdict
from collections import deque
from functools import lru_cache
import bisect
import re
import queue
import copy
import decimal


class Scanner():
    @staticmethod
    def int():
        return int(sys.stdin.readline().rstrip())

    @staticmethod
    def string():
        return sys.stdin.readline().rstrip()

    @staticmethod
    def map_int():
        return [int(x) for x in Scanner.string().split()]

    @staticmethod
    def string_list(n):
        return [Scanner.string() for i in range(n)]

    @staticmethod
    def int_list_list(n):
        return [Scanner.map_int() for i in range(n)]

    @staticmethod
    def int_cols_list(n):
        return [Scanner.int() for i in range(n)]


def solve():
    x = Scanner.int()
    if x == 0:
        print(1)
    else:
        print(0)


def main():
    # sys.setrecursionlimit(1000000)
    # sys.stdin = open("sample.txt")
    # T = Scanner.int()
    # for _ in range(T):
    solve()


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

Solution code:
import sys
N=int(sys.stdin.readline().strip())
print 0 if N==1 else 1

Submission status: Accepted

Solution code:
x=int(input())
ans=1-x
print(int(ans))

Submission status: Accepted

Solution code:
#N, M = map(int,input().split())
#AB=[]
#N = int(input())
C = input()
#D, T, S=map(int,input().split())
#C = []
#for i in range(N):
#    C.append(list(map(int,input().split())))
if C == "0":
    print("1")
else:
    print("0")

Submission status: Accepted

Solution code:
x= int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
# sys.setrecursionlimit(100000)


def input():
    return sys.stdin.readline().strip()


def input_int():
    return int(input())


def input_int_list():
    return [int(i) for i in input().split()]


def main():
    n = input_int()
    if n == 0:
        print(1)
    else:
        print(0)

    return


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# author:  Taichicchi
# created: 13.09.2020 21:00:30

import sys

x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

n = int(input())

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

from typing import *



# def solve(x: int) -> int:
def solve(x):
    return 1 if x==0 else 0

def main():
    x = int(input())
    a = solve(x)
    print(a)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
def readinput():
    n=int(input())
    return n

def main(n):
    if n==1:
        return 0
    else:
        return 1

if __name__=='__main__':
    n=readinput()
    ans=main(n)
    print(ans)

Submission status: Accepted

Solution code:

def resolve():
  N = int(input())

  print(1 if N == 0 else 0)

if __name__ == "__main__":
  resolve()

Submission status: Accepted

Solution code:
def main():
    x = int(input())
    if x == 1:
        print(0)
    else:
        print(1)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
# 幅優先探索（行きがけ）
import collections
import sys
import copy
import re
import math


def I(): return int(sys.stdin.readline().rstrip())


def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))


def S(): return sys.stdin.readline().rstrip()


def LS(): return list(sys.stdin.readline().rstrip().split())


def main():
    N = I()
    if N == 0:
        print(1)
    else:
        print(0)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import collections as cl
import sys


def II():
    return int(sys.stdin.readline())


def MI():
    return map(int, sys.stdin.readline().split())


def LI():
    return list(map(int, sys.stdin.readline().split()))


def main():
    N = II()
    ans = 1 if N == 0 else 0
    print(ans)


main()

Submission status: Accepted

Solution code:
#ABC178a
x = int(input())

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

Submission status: Accepted

Solution code:
a  = int(input())

print(int(a!=True))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = str(input())
if x == "1":
    print(0)
elif x == "0":
    print(1)

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/python
# -*- coding: UTF-8 -*-

import sys


def std_in():
    return sys.stdin.readline().strip()


def main():
    x = int(std_in())

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

else:
    print(1)

Submission status: Accepted

Solution code:
a = input().split()
a=a[0]
if int(a)==0:
  print("1")
else:
  print("0")

Submission status: Accepted

Solution code:
x=int(input())

ans=1

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()

x = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

print(int(n == 0))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())
if S == 1:
    print("0")
else:
    print("1")

Submission status: Accepted

Solution code:
def solve(x):
    if x == 0:
        return 1
    else:
        return 0


if __name__ == "__main__":
    x = int(input())
    print(solve(x))

Submission status: Accepted

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

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math,sys,bisect,heapq
from collections import defaultdict,Counter,deque
from itertools import groupby,accumulate
#sys.setrecursionlimit(200000000)
int1 = lambda x: int(x) - 1
input = iter(sys.stdin.buffer.read().decode().splitlines()).__next__
ilele = lambda: map(int,input().split())
alele = lambda: list(map(int, input().split()))
ilelec = lambda: map(int1,input().split())
alelec = lambda: list(map(int1, input().split()))
def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
#MOD = 1000000000 + 7
def Y(c):  print(["NO","YES"][c])
def y(c):  print(["no","yes"][c])
def Yy(c):  print(["No","Yes"][c])
    
x = int(input())
if x == 1:
    print(0)
else:
    print(1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

print(1 - x)

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

import sys

def main():
    n = int(input())
    if n == 0:
        print(1)
    else:
        print(0)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = int(input())

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

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 178
# A - Not

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(1000000)
from collections import deque

# 整数の入力
N = int(input())

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

x = int(read())
print(1 - x)

Submission status: Accepted

Solution code:
import sys

def resolve(in_):
    x = int(next(in_))
    return 1 if x == 0 else 0
    

def main():
    answer = resolve(sys.stdin.buffer)
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
#coding:utf-8

x = int(input())

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
print(int(n == 0))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import os
from sys import stdin, stdout
    
def solve(tc):
    a = int(stdin.readline().strip())
    print(1 if a==0 else 0)
    
    
tcs = 1
tc = 1
while tc <= tcs:
    solve(tc)
    tc += 1

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
if(n==0):
	print("1");
else:
	print("0")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import collections as cc
import math as mt
I=lambda:list(map(int,input().split()))
n,=I()
if n==1:
	print(0)
else:
	print(1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


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


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    x = int(next(tokens))  # type: int
    solve(x)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def LI():
    return list(map(int, input().split()))


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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]


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

    
if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())

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

Submission status: Accepted

Solution code:
def main():
    x = int(input())
    if x == 1:
        print(0)
    else:
        print(1)
    
    
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#dt = {} for i in x: dt[i] = dt.get(i,0)+1
import sys;input = sys.stdin.readline
inp,ip = lambda :int(input()),lambda :[int(w) for w in input().split()]

n = inp()
print((n+1)%2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import itertools


# 与えられた数値の桁数と桁値の総和を計算する.
def calc_digit_sum(num):
    digits = sums = 0
    while num > 0:
        digits += 1
        sums += num % 10
        num //= 10
    return digits, sums


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

ans = 1
if x == 1:
    ans = 0

print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
def main():
    x = int(input())
    print(1 if x == 0 else 0)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input(''))

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import copy
import math
import time
import statistics
import math
import itertools
import bisect
import sys
from decimal import *
from collections import deque


def get_int():
    return int(input())

def get_string():
    return input()

def get_int_list():
    return [int(x) for x in input().split()]

def get_string_list():
    return input().split()

def get_int_multi():
    return map(int, input().split())

def get_string_char_list():
    return list(str(input()))

# print("{} {}".format(a, b))
# a_list = [0] * a
sys.setrecursionlimit(10 ** 6)

def main():
    start = time.time()

    if get_int() == 0:
        ans = 1
    else:
        ans = 0
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
t=int(input())
if t==1:
    print("0")
else:
    print("1")

Submission status: Accepted

Solution code:

x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    '''
    code here
    '''
    x = int(input())

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
######################################################
#                                                    #
#                                                    # 
#                                                    # 
#                                                    # 
#               Coded by Prathyaksh                  # 
#                  on 12/09/2020                     # 
#                                                    #   
#                                                    # 
#                                                    # 
#                                                    #      #                                                    # 
######################################################
#Ada matrix
import math
import collections

#referenced this link for gcd functions its just a template
#https://www.geeksforgeeks.org/program-to-find-lcm-of-two-numbers/

#lol to get rid of plagiarism
def gcd(a,b):
  if a==0:
    return b
  return gcd(b%a,a)

def lcm(a,b):
  return a*b/gcd(a,b)

def min(a,b):
  if a<b:
    return a
  else:
    return b

def sw(a,b):
  a,b=b,a

#logic starts here
n=int(input())
#l=list(map(int,input().split()))
if n==0:
  print("1")
else:
  print("0")

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
### ----------------
### ここから
### ----------------

import sys
from io import StringIO
import unittest

def yn(b):
    print("Yes" if b==1 else "No")
    return

def resolve():
    readline=sys.stdin.readline

    #n,m,k=map(int, readline().rstrip().split())
    #arr=list(map(int, readline().rstrip().split()))
    x=int(readline())

    if x==0:
        x=1
    else:
        x=0
    print(x)
    #ss=readline().rstrip()
    #yn(1)

    return

if 'doTest' not in globals():
    resolve()
    sys.exit()

### ----------------
### ここまで 
### ----------------

Submission status: Accepted

Solution code:
def main():
    #H , W = map(int, input().split())
    #A_list = list(map(int, input().split()))
    x = int(input())
    if x == 0 :
        print("1")
    else :
        print("0")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int( input() )

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

Submission status: Accepted

Solution code:
# import numpy as np
# import math
# import copy
# from collections import deque
import sys
input = sys.stdin.readline
# sys.setrecursionlimit(10000)


def main():
    x = int(input())

    if x == 0:
        res = 1
    else:
        res = 0

    print(res)



main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

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

Submission status: Accepted

Solution code:
#!/usr/local/bin/python3

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

Submission status: Accepted

Solution code:
x = int(input().strip())

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

Submission status: Accepted

Solution code:
c = int(input())
print(1-c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
  N = input()
  if N == "1":
    print("0")
  else:
    print("1")  

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input())
print( (n==0)*1 )

Submission status: Accepted

Solution code:
import sys

input_ = sys.stdin.readline

x = int(input_().strip())

print(0 if x == 1 else 1)

Submission status: Accepted

Solution code:
x = int(input())

print(int(x==0))

Submission status: Accepted

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