Buggy python submission (verdict: Runtime Error):

N = input()
if N % 1000 == 0:
   print(0)
else:
  #N=5300として考えてみる
  ##5300払ったとして5
  sen = N//1000
  ##5*1000=5000円
  sen2 = sen*1000
  ##N(5300)-sen2(5000)
  atai = N-sen2
  #お釣りが300円と出るはずでは？
  print(atai)

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
#! /usr/bin/python3

N = [int(input()) for N in range(10000)]
#N = 5300
if N % 1000 == 0:
   print(0)
else:
  #N=5300として考えてみる
  ##5300払ったとして5
  sen = N//1000
  ##5*1000=5000円
  sen2 = sen*1000
  ##N(5300)-sen2(5000)
  atai = N-sen2
  #お釣りが300円と出るはずでは？
  print(atai)

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
#! /usr/bin/python3

N = [int(input()) for N in range(10000)]

if N % 1000 == 0:
   print(0)
else:
  #N=5300として考えてみる
  ##5300払ったとして5
  sen = N/1000
  print(sen)
  ##5*1000=5000円
  sen2 = sen*1000
  ##N(5300)-sen2(5000)
  atai = N-sen2
  #お釣りが300円と出るはずでは？
  print(atai)

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())
##一万円まで
for N in 10000:
  ##1000円で割り切れたらお釣りなし
  if N % 1000 == 0:
   print(0)
else:
  #N=5300として考えてみる
  ##5300払ったとして5
  sen = N/1000
  ##5*1000=5000円
  sen2 = sen*1000
  ##N(5300)-sen2(5000)
  atai = N-sen2
  #お釣りが300円と出るはずでは？
  print(atai)

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())
 sen = N//1000:
 sen2 = sen*1000
 atai = N-sen2
 
for N in 10000:
  if N % 1000 == 0：
  print(0)
else:
  print(atai)

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())

##一万円まで
for N in 10000:
  if N % 1000 == 0：
  print(0)


Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())
 
for N in 10000:
  if N % 1000 == 0：
  print(0)
else:
  sen = N//1000:
  sen2 = sen*1000
  atai = N-sen2
  print(atai)

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())
 
for N in 10000:
  if N % 1000 == 0：
  print(0)
else:
  sen = N/1000:
  sen2 = sen*1000
  atai = N-sen2
  print(atai)

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())

for N in 10000:
  if 1000 % N == 0：
  print(0)
else:
  sen = 1000/N:
  atai = N-sen
  print(sen + atai )

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())
sen = N / 1000:

if N % 1000 == 0：
  print(0)
else:
  atai = N - sen
  print(sen + atai )

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())
sen = N % 1000:

for N in 10000:
  if N % 1000 == 0：
  print(0)
else:
  atai = N - sen
  print(sen + atai )

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())
sen = N / 1000:
print(sen)
 
for N in 10000:
  if N % 1000 == 0：
  print(0)
else:
  atai = N - sen
  print(sen + atai )

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N=int(input())
sen = N / 1000:
 
for N in 10000:
  if N % 1000 == 0：
  print(0)
else:
  atai = N - sen
  print(sen + atai )

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N = int input()
sen = N / 1000:
 
for N in 10000:
  if N % 1000 == 0：
  print(0)
else:
  atai = N - sen
  print(sen + atai )

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)

Buggy python submission (verdict: Runtime Error):
N = int input()
sen = N / 1000:

for 1000 in 10000:
  if N % 1000 == 0：
  print(0)
else:
  print(sen + 1000-N)

Fixed submission:
#! /usr/bin/python3

N = int(input())
1 <= N <= 10000

if N % 1000 == 0:
 print(0)
else:
  sen = N//1000
  sen2 = sen*1000
  atai = N-sen2
  atai2 = 1000-atai
  print(atai2)