Buggy python submission (verdict: Runtime Error):

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
money = input()
a  = money % 1000
change = 0
if a > 0:
  change = 1000 - a
else:
  change = 0
return change
print(change)

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
money = input()
a  = money % 1000
if a > 0:
  change = 1000 - a
else:
  change = 0
return change
print(change)

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
def main(money):
  a  = money % 1000
  if a > 0:
    change = 1000 - a
 
  elif a = 0:
    change = 0
 
  print(int(change))

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
money = input()
def main(money):
  a  = money % 1000
  if a > 0:
    change = 1000 - a
 
  elif a = 0:
    change = 0
 
  print(change)

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
def main(money):
  a  = money % 1000
  if a > 0:
    change = 1000 - a

  elif a = 0:
    change = 0

  print(change)

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
def main(money):
  a  = money % 1000
  if a != 0:
    change = 1000 - a
  elif a = 0:
    change = 0
  print(change)

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
def main(money):
  a  = money % 1000
  if a != 0:
    change = 1000 - a
    return change
  elif a = 0:
    change = 0
    return change
  print(change)

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
def main(money):
  a  = money % 1000
  if a != 0:
    change = 1000 - a
    return change
  elif a = 0:
    change = 0
    return change

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
def change(money):
  a  = money % 1000
  if a != 0:
    change = 1000 - a
    return change
  elif a = 0:
    change = 0
    return change
if __name__ == "__main__":
    main() 

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)

Buggy python submission (verdict: Runtime Error):
def change(money):
  a  = money % 1000
  if a != 0:
    change = 1000 - a
    return change
  elif a = 0:
    change = 0
    return change
    
  

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul  5 20:25:04 2020

@author: KevinLU
"""
money = int(input())

a  = money % 1000
if a > 0:
    change = 1000 - a
else:
    change = 0
print(change)