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:
#!/usr/bin/env python3
import sys


def solve(x: int):

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

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


# 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:
a = input()
if a == "0":
  a = 1
  print(a)
else:
  a = 0
  print(a)

Submission status: Accepted

Solution code:
print("0" if int(input()) 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 == '1':
  print('0')
elif a == '0':
  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:
def run(x):
    '''

    '''
    print('{}'.format(0 if x==1 else 1))



if __name__ == '__main__':
    x = int(input())
    run(x)

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 == 1:
    print(int(0))
else:
    print(int(1))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys
import os

sys.setrecursionlimit(10**7)

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

if os.getenv("LOCAL"):
    inputFile = basename_without_ext = os.path.splitext(os.path.basename(__file__))[0]+'.txt'
    sys.stdin = open(inputFile, "r")
INF = float("inf")


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

Submission status: Accepted

Solution code:
ss = int(input())

if ss == 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 = input()
if x == '0':
    print(1)
else:
    print(0)

Submission status: Accepted

Solution code:
x = int(input())

if x:
  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:
import sys
from io import StringIO
import unittest

def resolve():
    x, = input().split()
    if x=='0':
        print(1)
    else:
        print(0)


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """1"""
        output = """0"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """0"""
        output = """1"""
        self.assertIO(input, output)


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
from collections import Counter
from collections import deque
from sys import stdin
from bisect import *
from heapq import *
import math

g   = lambda : stdin.readline().strip()
gl  = lambda : g().split()
gil = lambda : [int(var) for var in gl()]
gfl = lambda : [float(var) for var in gl()]
gcl = lambda : list(g())
gbs = lambda : [int(var) for var in g()]
mod = int(1e9)+7
inf = float("inf")

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
if input()=='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:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

N = int(sys.stdin.readline().strip())
print(1 if N == 0 else 0)

Submission status: Accepted

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


def solve(x: int):
    if x==0:
        print(1)
    else:
        print(0)
    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:
#A
x = int(input())

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

Submission status: Accepted

Solution code:
data = int(input())

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

Submission status: Accepted

Solution code:
print(0) if input() == '1' else print(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 == 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:
x = int(input())
if x == 1:
    print(0)
else:
    print(1)

Submission status: Accepted

Solution code:
A = 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:
print(1 if int(input())<1 else 0)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 標準入力を取得
x = int(input())

# 求解処理
ans = int()
if x == 0:
    ans = 1
else:
    ans = 0

# 結果出力
print(ans)

Submission status: Accepted

Solution code:
from __future__ import division, print_function
import bisect
import math
import heapq
import itertools
import sys
from collections import deque
from atexit import register
from collections import Counter
from functools import reduce
if sys.version_info[0] < 3:
    from io import BytesIO as stream
else:
    from io import StringIO as stream
 
 
if sys.version_info[0] < 3:
    class dict(dict):
        """dict() -> new empty dictionary"""
        def items(self):
            """D.items() -> a set-like object providing a view on D's items"""
            return dict.iteritems(self)
 
        def keys(self):
            """D.keys() -> a set-like object providing a view on D's keys"""
            return dict.iterkeys(self)
 
        def values(self):
            """D.values() -> an object providing a view on D's values"""
            return dict.itervalues(self)
 
    input = raw_input
    range = xrange
 
    filter = itertools.ifilter
    map = itertools.imap
    zip = itertools.izip
 
 
def sync_with_stdio(sync=True):
    """Set whether the standard Python streams are allowed to buffer their I/O.
 
    Args:
        sync (bool, optional): The new synchronization setting.
 
    """
    global input, flush
 
    if sync:
        flush = sys.stdout.flush
    else:
        sys.stdin = stream(sys.stdin.read())
        input = lambda: sys.stdin.readline().rstrip('\r\n')
 
        sys.stdout = stream()
        register(lambda: sys.__stdout__.write(sys.stdout.getvalue()))

def main():
    # sys.stdin  = open("input.txt")
    x=int(input())
    if x==0:
        print("1")
    else:
        print("0")
    

if __name__ == '__main__':
    sync_with_stdio(False)
    main()

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
import sys
readline = sys.stdin.readline
read = sys.stdin.read

x, = map(int,read().split())
print(1-x)

Submission status: Accepted

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

x =int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
S = input()


x=int(S)

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

Submission status: Accepted

Solution code:
n = int(input())
print(-1*n+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())
ret = 0 if N == 1 else 1
print(ret)

Submission status: Accepted

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

numList = []
result = []

user1 = int(input())

if 0 == user1:
    result = 1
else:
    result = 0
print(result)

Submission status: Accepted

Solution code:
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(map(int, input().split()))

x = ii()
print( (x-1)*(x-1) )

Submission status: Accepted

Solution code:
a = int(input())

if a==1:
    b = 0
else:
    b = 1

print(b)

Submission status: Accepted

Solution code:
def p(val):
    print(val)


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())

print((x+1)%2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
import sys
r=sys.stdin.readline
x=int(r())
if x==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==0:
    print(1)
elif x==1:
    print(0)
else:
    pass

Submission status: Accepted

Solution code:

print (int(input()) ^ 1)

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:
a = int(input())
print("1" if a == 0 else "0")

Submission status: Accepted

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

Submission status: Accepted

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

a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
input = stdin.readline
# ~ T = int(input())
T = 1
for t in range(1,T + 1):
	x = int(input())
	print(0 if x == 1 else 1)

Submission status: Accepted

Solution code:
#Python Template

from sys import stdin, stdout

def main():
	x = int(stdin.readline())
	print(1-x)
	

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print 1-int(raw_input())

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

if (x == 0):
    print("1")
if (x == 1):
    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:
i = int(input())
if i == 1:
    print(0)
else:
    print(1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())

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:
#!/usr/bin/env python3


x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
x=int(input())

print(1 if x==0 else 0)

Submission status: Accepted

Solution code:
def solve():
  x = int(input())
  print(x^1)
  
solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7)

def input(): return sys.stdin.readline()[:-1]
mod = 10**9 + 7
def readInt():return int(input())
def readIntList():return list(map(int,input().split()))
def readStringList():return list(input())
def readStringListWithSpace():return list(input().split())
def readString():return input()

x = readInt()

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

Submission status: Accepted

Solution code:
import sys
import itertools

x = int(input())

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

Submission status: Accepted

Solution code:
x = 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())
if x==1 :
  print(0)
else :
  print(1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

if (x == '0'): print (1)
if (x == '1'): 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:
input =int(input())
if input == 0:
  print('1')
else:
  print('0')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

print(int(x == 0))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# coding:utf-8

def main():
    stdIn = int(input())
    stdOut = solve(stdIn)
    print(stdOut)

"""
方針


"""

def solve(stdIn):
    if stdIn == 0:
        return 1
    return 0

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():

    x = int(input())

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

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

x = int(stdin.readline().rstrip())

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
#coding: utf-8

import sys

x = int(input())
if x == 0:
    print (1)
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:
x=int(input())
#map(int, input().split())
#list(map(int, input().split()))

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


print(ans)

Submission status: Accepted

Solution code:
from sys import stdin

x = int(stdin.readline())

if x == 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 = 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())
print(int(not bool(x)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

N=int(input())

ans=abs(1-N)

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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)
elif x==1:
	print(0)

Submission status: Accepted

Solution code:
import sys

x = sys.stdin.readline().strip()


if x == "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==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:
x = int(input())

print((x+1)%2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

def input_int_list():
    return(list(map(int,input().split())))

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

def run():
    num = input_int()

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

run()

Submission status: Accepted

Solution code:
x = input()

if (x == '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:
# input
X = int(input())

# output
print(1 if X==0 else 0)

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
from sys import stdin,stdout
def INPUT():return list(int(i) for i in stdin.readline().split())
def inp():return stdin.readline()
def out(x):return stdout.write(x)
import math
import random
J=int(1e9)+7

###############################################################################\n=17
x=int(input())
if x==0:
    print(1)
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    import sys
    def input():
        return sys.stdin.readline()[:-1]
    x=int(input())
    y=0
    if x==0:
        y=1
    print(y)
    



if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = int(input().strip())
print(1 - a)

Submission status: Accepted

Solution code:
X=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:
if input() == '1':
    print(0)
else:
    print(1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import re
import queue
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

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

	return


if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3

x = input()

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

Submission status: Accepted

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

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:
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    X = int(input())
    print(abs(X - 1))


main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

print(1-x)

Submission status: Accepted

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

x = int(readline().strip())

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(250000)

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

    if n == 0:
        print(1)
    elif n == 1:
        print(0)
    # n, w = map(int, input().split())
    #
    # pairs=[]
    # for i in range(n):
    #     pairs.append(list(map(int, input().split())))
    #
    # dp =  [[0] * 10001 for i in range(101)]
    # for j in range(0, 10001):
    #     for i in range(0,n):
    #         if j >= pairs[i][1]:
    #             dp[i+1][j] = max(dp[i][j-pairs[i][1]] + pairs[i][0], dp[i][j])
    #         else:
    #             dp[i+1][j] = dp[i][j]
    #
    # print(dp[n][w])
main()

Submission status: Accepted

Solution code:
a = int(input())
print(0 if a else 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:
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:
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:
s = int(input())

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=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:
import math as mt
import sys
import bisect
input=sys.stdin.readline
t=1
#t=int(input())
mod=10**9+7
for _ in range(t):
    
    n=int(input())
    #n,k,w=map(int,input().split())
    #u1,d1=map(int,input().split())
    #u2,d2=map(int,input().split())
    #l=list(map(int,input().split()))
    print(n^1)

Submission status: Accepted

Solution code:
import sys,collections,math,random,fractions,bisect;sys.setrecursionlimit(10**7)
sr = sys.stdin.readline; P = print; P2 = lambda x: print(*x, sep="\n")
def I(i=0): t = [int(x)-i for x in sr().split()];return t
def S(): t = sr().split(); return t if len(t) > 1 else t[0]
L1,L2,L3,L4, = [],[],[],[]
 
i, = I()
if i == 0:
    print(1)
else:
    print(0)

Submission status: Accepted

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

import sys
from collections import defaultdict, deque
from heapq import heappush, heappop
import math
import bisect
input = sys.stdin.readline

# 再起回数上限変更
# sys.setrecursionlimit(1000000)

x = float(input())
if x > 0:
    print(0)
else:
    print(1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# input here
_INPUT = """\

"""
"""
K = int(input())
H, W, K = map(int, input().split())
a = list(map(int, input().split()))
xy = [list(map(int, input().split())) for i in range(N)]
p = tuple(map(int,input().split()))
"""
def main():
    x = int(input())
    if x == 0:
        print(1)
    else :
        print(0)

            
if __name__ == '__main__':
    import io
    import sys
    import math
    import itertools
    from collections import deque

    # sys.stdin = io.StringIO(_INPUT)
    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())
print(1) if not n else print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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())
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:
A = int(input())
if A == 0:
  print(1)
else:
  print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# import sys
# sys.setrecursionlimit(10 ** 6)
# import bisect
# from collections import deque
# from decorator import stop_watch
# 
# 
# @stop_watch
def solve(x):
    print(int(not x))


if __name__ == '__main__':
    # S = input()
    x = int(input())
    # N, M = map(int, input().split())
    # Ai = [int(i) for i in input().split()]
    # Bi = [int(i) for i in input().split()]
    # ABi = [[int(i) for i in input().split()] for _ in range(N)]
    solve(x)

    # # test
    # from random import randint
    # from func import random_str
    # solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)


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


if __name__ == '__main__':
    main(sys.stdin.readline, print)

Submission status: Accepted

Solution code:
def probA():
    x = int(input())

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


def main():
    probA()


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:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())

if a == 1:
  print(0)
else:
  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())

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

Submission status: Accepted

Solution code:
def resolve():
    x = int(input())
    print(1 if x == 0 else 0)
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())
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:
a = int(input())
print(1 - a)