qyliang/CodeNanoFix huggingface dataset:
Buggy code:
s = input()
s_serve = list(s)

if s.count(s_serve[0])==1 and s.count(s_serve[1])==1 and s.count(s_serve[2])==s.count(s_serve[3]) and s.count(s_serve[4])==s.count(s_serve[5]):
  print('Yes')
else:
  print('No')

Fixed code:
s = input()
s_serve = list(s)

if s.count(s_serve[0])==1 and s.count(s_serve[1])==1 and s_serve[2]==s_serve[3] and s_serve[4]==s_serve[5]:
  print('Yes')
else:
  print('No')
Buggy code:
s=input()
flag=0
if s[2]!=s[3]:
	flag=1
if s[4]!=s[5]:
	flag==1
if flag==0:
	print("Yes")
else:
	print("no")

Fixed code:
s=input()
flag=0
if s[2]!=s[3]:
	flag=1
if s[4]!=s[5]:
	flag=1
if flag==0:
	print("Yes")
else:
	print("No")
Buggy code:
S = input()
if len(S) < 6:
    print("No")
else:
    if S[2] == S[3] and S[4] == S[5]:
        print("No")
    else:
        print("No")

Fixed code:
S = input()
if len(S) < 6:
    print("No")
else:
    if S[2] == S[3] and S[4] == S[5]:
        print("Yes")
    else:
        print("No")
Buggy code:
a = input()

if (a[2] = a[3] and a[4] = a[5]):
  print(Yes)
else:
  print(No)

Fixed code:
a = input()
if a[2] ==a[3] and a[4]==a[5]:
    print ("Yes")
else:
    print ("No")
Buggy code:
S = input()
 
if (S[2] = S[3] and S[4] = S[5]):
  print(Yes)
else:
  print(No)

Fixed code:
S = input()
 
if (S[2] == S[3] and S[4] == S[5]):
  print("Yes")
else:
  print("No")
Buggy code:
s = input()
if s[2] == 2[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Fixed code:
s=list(input())
if s[2] == s[3] and s[4] == s[5]:
    r = "Yes"
else:
    r = "No"
print(r)
Buggy code:
s = input().split()
a = list(s)
if a[2] == a[3] and a[4] == a[5]:
    print("Yes")
else:
    print("No")    


Fixed code:
s = input()
a = list(s)
if a[2] == a[3] and a[4] == a[5]:
    print("Yes")
else:
    print("No")
Buggy code:
N=input()
if (len(N)==6):
  if(N[2]==N[3]):
    if(N[4]==N[5]):
      print('Yes')
    else:
      print('No')
      
  

Fixed code:
N=input()
if (len(N)==6):
    if(N[2]==N[3]):
        if(N[4]==N[5]):
            print('Yes')
        else:
            print('No')
    else:
            print('No')
else:
            print('No')
Buggy code:
a = list(input())
if a[2]==a[3] & a[4]==a[5]:
    print("Yes")
else:
    print("No")

Fixed code:
a = list(input())
if a[2]==a[3] and a[4]==a[5]:
    print("Yes")
else:
    print("No")
Buggy code:
S = input()
if S[2] == S[3]:
  if [4] == S[5]:
    print('Yes')
else:
  print('No')

Fixed code:
S = input()
if S[2]==S[3]:
  if S[4]==S[5]:
    print('Yes')
  else:
    print('No')
else:
  print('No')
Buggy code:
# -*- coding: utf-8 -*-

str = input()
strlist = list(str)
print(strlist)

if str[2] == str[3] and str[4] == str[5]:
    print("Yes")
else:
    print("No")


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

str = input()
strlist = list(str)

if str[2] == str[3] and str[4] == str[5]:
    print("Yes")
else:
    print("No")
Buggy code:
S = int(input())
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Fixed code:
S = input()
 
if S[2] == S[3] and S[4] == S[5]: print('Yes')
else: print('No')
Buggy code:
S = input()
if S[2] = S[3] and S[4] = S[5]:
  print(Yes)
else if:
  print(No)


Fixed code:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print('Yes')
else:
  print('No')
Buggy code:
s = input()

if s[2] == a[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")


Fixed code:
s = input()

if s[2]==s[3] and s[4]==s[5]:
	print('Yes')
else:
	print('No')
Buggy code:
S = input()
S = S.split()
if ((S[2]==S[3])&(S[4]==S[5])):
	print("Yes")
else: 
    print("No")


Fixed code:
S = input()
#S = S.split()
if ((S[2]==S[3])&(S[4]==S[5])):
	print("Yes")
else: 
	print("No")
Buggy code:
i_str = input()
anser = 'No'
if i_str[3:3] == i_str[4:4]:
  if i_str[5:5] == i_str[6:6]:
    anser = 'Yes'
    
print(anser)

Fixed code:
i_str = input()
anser = 'No'

if i_str[2:3] == i_str[3:4]:
  if i_str[4:5] == i_str[5:6]:
    anser = 'Yes'
    
print(anser)
Buggy code:
"""
"""


def int_as_array(num): return list(map(int, [y for y in str(num)]))


def array_as_int(arr): return int(''.join(map(str, arr)))


def read_int(): return int(input())


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


def array_to_string(arr, sep=' '): return sep.join(map(str, arr))


def matrix_to_string(arr, sep=' '): return '[\n' + '\n'.join(
    [sep.join(map(str, row)) for row in arr]) + '\n]'


def solve(string):
    if string[2] == string[3] and string[4] == string[5]:
        print('Yes')
    else:
        print('No')


T = read_int()

string = input()
solve(string)


Fixed code:
"""
"""


def int_as_array(num): return list(map(int, [y for y in str(num)]))


def array_as_int(arr): return int(''.join(map(str, arr)))


def read_int(): return int(input())


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


def array_to_string(arr, sep=' '): return sep.join(map(str, arr))


def matrix_to_string(arr, sep=' '): return '[\n' + '\n'.join(
    [sep.join(map(str, row)) for row in arr]) + '\n]'


def solve(string):
    if string[2] == string[3] and string[4] == string[5]:
        print('Yes')
    else:
        print('No')


string = input()
solve(string)
Buggy code:
s = input()
ans = "No"

if s[2] == s[3]and s[4] == s[5]and s[2] != ans[4]:
    ans = "Yes"

print(ans)


Fixed code:
s = input()
ans = "No"

if (s[2] == s[3])and (s[4] == s[5]):
    ans = "Yes"

print(ans)
Buggy code:
string = list(input("");
if (string[2] == string[3]):
  if (string[4] == string[5]):
    print("Yes");
  else:
    print("No");
else:
  print("No");

Fixed code:
string = list(input());
if (string[2] == string[3]):
  if (string[4] == string[5]):
    print("Yes");
  else:
    print("No");
else:
  print("No");
Buggy code:
S = input()

if len(S) > 6:
    if S[2] is S[3] and S[4] is S[5]:
        print ("Yes")
        exit()
print ("No")
    
        

Fixed code:
S = input()

if len(S) >= 6:
    if S[2] is S[3] and S[4] is S[5]:
        print ("Yes")
        exit()
print ("No")
Buggy code:
#! env/bin/local python3
# -*- coding: utf-8 -*-

s = input()
if s[2] == s[3] and s[4] == 2[6]:
    print('Yes')
else:
    print('No')

Fixed code:
#! env/bin/local python3
# -*- coding: utf-8 -*-

s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')
Buggy code:
s=input()
flag=1
if list(s)[2]==list(s)[3]:
  if list(s)[4]==list(s)[5]:
    flag=0
if flag=0:
  print("Yes")
else:
  print("No")
  


Fixed code:
s=input()
flag=1
if list(s)[2]==list(s)[3]:
  if list(s)[4]==list(s)[5]:
    flag=0
if flag==0:
  print("Yes")
else:
  print("No")
Buggy code:
A = input().strip()
if(A[2] == A[3] and A[4] == A[5]):
    print("Yes")
else:
    print ("no")


Fixed code:
A = input().strip()
if(A[2] == A[3] and A[4] == A[5]):
    print("Yes")
else:
    print ("No")
Buggy code:
S = input()

if S[2]==S[3] and [4]==S[5]:
  print("Yes")
else:
  print("No")

Fixed code:
S = input()
if S[2] == S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")
Buggy code:
s=input()
if s[2]==[3] and s[4]==[5]:
  print("Yes")
else:
  print("No")

Fixed code:
s = str(input())

if (s[2] == s[3]) and (s[4] == s[5]):
    print("Yes")
else:
    print("No")
Buggy code:
s = int(input())
ans = "No"
if len(s) == 6:
  if s[2]==s[3] and s[4]==s[5]:
    ans = "Yes"
print(ans)

Fixed code:
s = input()
ans = "No"
if len(s) == 6:
  if s[2]==s[3] and s[4]==s[5]:
    ans = "Yes"
print(ans)
Buggy code:
s = list(input().split())
if  s[2] == s[3] and s[4]==s[5]:
    print('Yes')
else:
    print('No')

Fixed code:
s = list(input())
if  s[2] == s[3] and s[4]==s[5]:
    print('Yes')
else:
    print('No')
Buggy code:
n=input()
if a[2]==a[3] and a[4]==a[5]:
  print("Yes")
else:
  print("No")

Fixed code:
n = list(input())
if (n[5]):
    if (n[2]==n[3])and(n[4]==n[5]):
        print("Yes")
    else:
        print("No")
Buggy code:
if S[2] == S[3] and S[4] == S[5]:
        print("Yes")
else:
        print("No")

Fixed code:
S = input()

if S[2]==S[3] and S[4]==S[5]:
	print('Yes')
else:
	print('No')
Buggy code:
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else : 
    print("No")


Fixed code:
S=input()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else : 
    print("No")
Buggy code:
s = list(input())
if s[2] = s[3] and s[4] = s[5]:
  print("Yes")
  
else:
  print"No")

Fixed code:

s = input()
s=list(s)

if s[2]==s[3] and s[4]==s[5]:
    print('Yes')
else:print('No')
Buggy code:
print("Yes" if s[2]==s[3] and s[4] == s[5] else "No")

Fixed code:
s = input()
print("Yes" if s[2]==s[3] and s[4] == s[5] else "No")
Buggy code:
s = input()
t = 'coffee'
if s[2] == t[2] and s[3] == t[3] and s[4] == t[4] and s[5] == t[5] :
    print('Yes')
else :
    print('No')

Fixed code:
s=input()
if s[4]==s[5] and s[2]==s[3]:
    print("Yes")
else:
    print("No")
Buggy code:
S = int(input())

check = S[2] == S[4] and S[3] == S[5]

print("Yes" if check else "No")

Fixed code:
S = input()

check = S[2] == S[3] and S[4] == S[5]

print("Yes" if check else "No")
Buggy code:
# A Coffee

S = input()

if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("")

Fixed code:
# A Coffee

S = input()

if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")
Buggy code:
string = input()

if string[2] == string[3] and string[4] == string[5]:
  print 'Yes'
else:
  print 'No'

Fixed code:
string = input()

if string[2] == string[3] and string[4] == string[5]:
  print('Yes')
else:
  print('No')
Buggy code:
S = input()
for i in range(0, len(S)):
    if ((S[2]==S[3])&(S[4]==S[5])):
        print("yes")
        break
    else:
        print("No")
        break

Fixed code:
S = input()
for i in range(0, len(S)):
    if ((S[2]==S[3])&(S[4]==S[5])):
        print("Yes")
        break
    else:
        print("No")
        break
Buggy code:
s = list(input())
if s[2] == s[3] & s[4] == s[5]:
  print('Yes')
else:
  print('No')

Fixed code:
s = list(input())
if (s[2] == s[3]) & (s[4] == s[5]):
  print('Yes')
else:
  print('No')
Buggy code:
# problem A
X = list(input())
if (X[2] == X[3]) and (X[4] == X[5]):
        print('Yes')
else:
        prin('No')

Fixed code:
# problem A
X = list(input())
if (X[2] == X[3]) and (X[4] == X[5]):
        print('Yes')
else:
        print('No')
Buggy code:
S = list(str, input())

if S[2] == S[3]:
  if S[4] == S[5]:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Fixed code:
S = list(input())

if S[2] == S[3]:
  if S[4] == S[5]:
    print("Yes")
  else:
    print("No")
else:
  print("No")
Buggy code:
a=list(input())
if a[2]==a[3] and a[4]==a[5]:
  print('Yes')
else:
  prin('No')


Fixed code:
a = input()

if a[2] == a[3] and a[4] == a[5]:
  print('Yes')
else:
  print('No')
Buggy code:
S = input()
if S[3] == S[4] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Fixed code:
S= input()
if S[2] == S[3]  and S[4] ==S[5]:
    print("Yes")
else:
    print("No")
Buggy code:
word = map(str, input())

if word[2]==word[3] and word[4]==word[5]:
  print('Yes')
else:
  print('No')

Fixed code:
word = str(input())
 
if word[2]==word[3] and word[4]==word[5]:
  print('Yes')
else:
  print('No')
Buggy code:
from sys import exit, stdin
S = stdin.readline().rstrip()
if S[3] == S[4] and S[5] == S[6]:
  print('Yes')
else:
  print('No')


Fixed code:
from sys import exit, stdin
S = stdin.readline().rstrip()
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')
Buggy code:
s = input
print("Yes" if s[2]==s[3] and s[4]==s[5] else "No")

Fixed code:
s=input()
if(s[2]==s[3] and s[4]==s[5]):
    print('Yes')
else:
    print('No')
Buggy code:
S = input()
if S[2]==S[3] and S[4]=S[5]:
    print('Yes')
else:
    print('No')

Fixed code:
S =str(input())
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")
Buggy code:
s = input()

condition = s[2]==s[3] and s[3]==s[4]

if condition:
  print("Yes")
else:
  print("No")

Fixed code:
s = input()
 
condition = s[2]==s[3] and s[4]==s[5]
 
if condition:
  print("Yes")
else:
  print("No")
Buggy code:
s = list(input())

if s[3] == s[4] and s[5] == s[6]:
  print("Yes")
else:
  print("No")

Fixed code:
s = list(input())
if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("No")
Buggy code:
s=input()
if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No')

Fixed code:
s = list(input())

if(s[2]==s[3] and s[4]==s[5]):
    print("Yes")
else:
    print("No")
Buggy code:
a = input()
b = []
for z in a:
  b.apppend(z)
if b[2]==b[3]:
  if b[4]==b[5]:
    print("Yes")
  else:
    print("No")
else:
  print("No")
  

Fixed code:
a = input()
b = []
for z in a:
  b.append(z)
if b[2]==b[3]:
  if b[4]==b[5]:
    print("Yes")
  else:
    print("No")
else:
  print("No")
Buggy code:
S=input()
if S[2]=S[3] and S[4] = S[5]:
    print ('Yes')
else:
    print('No')

Fixed code:
S=input()
if S[2] == S[3] and S[4] == S[5]:
    print ('Yes')
else:
    print('No')
Buggy code:
S = input()S = input()

if len(S) >= 6:
    if S[2]==S[3] and S[4]==S[5]:
        ret = 'Yes'
    else:
        ret = 'No'
else:
    ret = 'No'
print(ret)

Fixed code:
S = input()
 
if len(S) >= 6:
    if S[2]==S[3] and S[4]==S[5]:
        ret = 'Yes'
    else:
        ret = 'No'
else:
    ret = 'No'
print(ret)
Buggy code:
s = input()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")


Fixed code:
s=input()

if(s[2]==s[3]and s[4]==s[5]):
  print("Yes")
else:
  print("No")
Buggy code:
a,b,c,d,e,f = input()
if (c==d) and (e==f) : print("Yes")
else print("No")

Fixed code:
a,b,c,d,e,f = input()
if (c==d) and (e==f) : print("Yes")
else : print("No")
Buggy code:
S = input()

if (S[2] and S[4]) and (S[4] and S[5]):
    print("Yes")
else:
    print("No")

Fixed code:
S = input()

if (S[2] == S[3]) and (S[4] == S[5]):
    print("Yes")
else:
    print("No")
Buggy code:
s = input()
if len(s) == 6 and s[2] == s[3] and s[4] == s[5]:
    print('Yse')
else:
    print('No')

Fixed code:
s = input()
if len(s) == 6 and s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')
Buggy code:
from math import floor
from decimal import Decimal

S = int(input())

if S[2] == S[3] and S[4] === S[5]:
    print("Yes")
else:
    print("No")

Fixed code:
from math import floor
from decimal import Decimal

S = input()

if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")
Buggy code:
words = list(input())
if words[3] == words[4] and words[5]== words[6]:
    print("Yes")
else:
    print("No")

Fixed code:
words = list(input())
if words[2] == words[3] and words[4]== words[5]:
    print("Yes")
else:
    print("No")
Buggy code:
# -*- coding: utf-8 -*-
# get a integer
a = input()
# output
if len(a) == 6 and a[2] == a[3] and a[4] == a[5]:
	print('Yes')
else
	print('No')

Fixed code:
# -*- coding: utf-8 -*-
# get a integer
a = input()
# output
if len(a) == 6 and a[2] == a[3] and a[4] == a[5]:
    print('Yes')
else:
    print('No')
Buggy code:
# -*- coding: utf-8 -*-
S= input()
S_list = list(S)
print(S_list)
if S_list[2] == S_list[3]:
    if S_list[4] == S_list[5]:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Fixed code:
# -*- coding: utf-8 -*-
S= input()
S_list = list(S)
if S_list[2] == S_list[3]:
    if S_list[4] == S_list[5]:
        print("Yes")
    else:
        print("No")
else:
    print("No")
Buggy code:
S=input()
if S[2] == S[3] & S[4] == S[5]:
  print('Yes')
else:
  print('No')

Fixed code:
S = list(input())
if (S[2]==S[3]) & (S[4]==S[5]) :
  print('Yes')
else:
  print('No')
Buggy code:
if txt[2] == txt[3] and txt[4] == txt[5]:
    print('Yes')
else :
    print('No')


Fixed code:
txt = input()

if txt[2] == txt[3] and txt[4] == txt[5]:
    print('Yes')
else :
    print('No')
Buggy code:
import sys
S = sys.readline()
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')

Fixed code:
import sys
S = sys.stdin.readline()
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')
Buggy code:
s = input()
if s[2]==s[3] and s[4]==s[5]:
    print(Yes)
else:
    print(No)

Fixed code:
s=input()

if s[2]==s[3]  and s[4]==s[5]:
    print("Yes")

else:print("No")
Buggy code:
s = str(input())
if s[2]==s[3] and s[4]==s[5]:
    print(Yes)
else:
    print(No)

Fixed code:
s = str(input())

if s[2] == s[3] and s[4] ==s[5]:
  print('Yes')
else:
  print('No')
Buggy code:
S = input()
S = input("")
if(S[2].__eq__(S[3]) and S[4].__eq__(S[5])):
    print("Yes")
else:
    print("No")

Fixed code:
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")
Buggy code:
s=input()
if s[2]==s[3] and s[4]==s[5]:
          print("Yes")
else:
          print("No"


Fixed code:
def main():
    s = input()
    if s[2] == s[3] and s[4] == s[5]:
        print("Yes")
    else:
        print("No")


main()
Buggy code:
s = input()
print("Yes" if s[2] == s[3] and s[4] == s[5] else "No)

Fixed code:
s=input()
print("Yes" if s[2]==s[3] and s[4]==s[5] else "No")
Buggy code:
# -*- coding: utf-8 -*-

s = list(input())

if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("no")


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

s = list(input())

if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")
Buggy code:
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")
  

Fixed code:
S=input()

if(S[2]==S[3] and S[4]==S[5]):
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c,d,e,f = input().split()
if c == d and e == f:
    print('Yes')
else:
    print('No')

Fixed code:
a, b, c, d, e, f = input()
if c == d and e == f:
	print("Yes")
else:
    print("No")
Buggy code:
s = input()

if s[2]==s[3]:
  if s[3]==s[4]:
    print("Yes)
else:
  print("No")

Fixed code:
s = input()

if s[2] == s[3]:
    if s[4] == s[5]:
        print('Yes')
    else:
      print('No')
else:
    print("No")
Buggy code:
s = input()

if s[2] == s[3]:
    if s[4] == s[5]:
        print('Yes)
    else:
      print('No')
else:
    print("No")


Fixed code:
s = input()
if s[2] == s[3] and  s[4] == s[5]:
    print('Yes')
else:
    print('No')
Buggy code:
a = input()
if len(a) == 6:
    print("No")
else:
    if (a[2] == a[3])and(a[4] == a[5]):
        print("Yes")
    else:
        print("No")

Fixed code:
a = input()
if len(a) != 6:
    print("No")
else:
    if (a[2] == a[3])and(a[4] == a[5]):
        print("Yes")
    else:
        print("No")
Buggy code:
#B
x = int(input())
y500 = x // 500
y5 = y500 // 5
print(y500 * 1000 + y5 * 5)

Fixed code:
#B
x = int(input())
y500 = x // 500
y5 = (x - 500 * y500) // 5
print(y500 * 1000 + y5 * 5)
Buggy code:
X = input()
tmp = X // 500
ans = tmp * 1000 + X % 500 - ((X % 500) % 5)
print(ans)

Fixed code:
X = int(input())
tmp = X // 500
ans = tmp * 1000 + X % 500 - ((X % 500) % 5)
print(ans)
Buggy code:
money = int(input())

max500 = money // 500
rem500 = money % 500

max5 = money // 5

happiness = max500 * 1000 + max5 * 5

print(happiness)


Fixed code:
money = int(input())
 
max500 = money // 500
rem500 = money % 500
 
max5 = rem500 // 5
 
happiness = max500 * 1000 + max5 * 5
 
print(happiness)
Buggy code:
X = input()
nfh = X // 500
nf = (X - 500 * nfh) // 5
happy = 1000 * nfh + 5 * nf
print(happy)

Fixed code:
X = int(input())
nfh = X // 500
nf = (X - 500 * nfh) // 5
happy = 1000 * nfh + 5 * nf
print(happy)
Buggy code:
X = int(input())

ans = 0
ans += (X // 500) * 1000
ans += ((X % 500) // 5) * 5


Fixed code:
X =  int(input())

ans = 0
ans += (X // 500) * 1000
ans += ((X % 500) // 5) * 5
print(ans)
Buggy code:
X = input()
num500=X//500
num5=(X%500)//5
print (1000*num500+5*num5)

Fixed code:
X = int(input())
num500=X//500
num5=(X%500)//5
print (1000*num500+5*num5)
Buggy code:
x = int(input())
a = int(x/500)
b = x - a
c = int(b/5)

print(1000*a + 5*c)



Fixed code:
x=int(input())

a=x//500
b=(x-500*a)//5

print(a*1000+b*5)
Buggy code:
x = input()
print(x//500 * 1000 + x%500//5 * 5)

Fixed code:
x = int(input())
print(x//500 * 1000 + x%500//5 * 5)
Buggy code:
import math

N = int(input())
#print(N)

A = math.floor(N / 500)
#print(A)
N = N - A * 500
#print(N)
B = math.floor(N / 5)
print(B)

AA = A * 1000
BB = B * 5
print(AA + BB)

Fixed code:
import math

N = int(input())
#print(N)

A = math.floor(N / 500)
#print(A)
N = N - A * 500
#print(N)
B = math.floor(N / 5)
#print(B)

AA = A * 1000
BB = B * 5
print(AA + BB)
Buggy code:
yen=int(input())
big=yen//500
small=(yen-500*big)//5
print(1000*big+5*small

Fixed code:
yen=int(input())
big=yen//500
small=(yen-500*big)//5
print(1000*big+5*small)
Buggy code:
x = int(input())
print((x//500)*5 + ((x%500)//5)*5)

Fixed code:
x = int(input())
print((x//500)*1000 + ((x%500)//5)*5)
Buggy code:
x = int(input())
a = x // 500
print((x // 500) * 1000 + x - 500 * a)

Fixed code:
x = int(input())
a = x // 500
print((x // 500) * 1000 + ((x - 500 * a) // 5) * 5)
Buggy code:
import math


num = int(input("num: "))


c_500 = math.floor(num / 500)
num2 = num - c_500 * 500

c_5 = math.floor(num2/5)



print(c_500 * 1000 +c_5 * 5)

Fixed code:
import math


num = int(input())


c_500 = math.floor(num / 500)
num2 = num - c_500 * 500

c_5 = math.floor(num2/5)



print(c_500 * 1000 +c_5 * 5)
Buggy code:
x=int(input())
cnt = 0
q = x // 500
cnt += (q * 1000)
w = x % 500
e = w // 5
cnt += (e * 5)


Fixed code:
x=int(input())
cnt = 0
q = x // 500
cnt += (q * 1000)
w = x % 500
e = w // 5
cnt += (e * 5)
print(cnt)
Buggy code:
x = int(input())
a = x//500
b = x % 500
print(a*1000+b*5)


Fixed code:
x = int(input())
a = x//500
b = x % 500//5
print(1000*a+5*b)
Buggy code:
x = int(input())
happy500 = (x // 500) * 1000
print(happy500)
happy5 = ((x % 500) // 5) * 5
print(happy5)
print(happy500 + happy5)

Fixed code:
x = int(input())
happy500 = (x // 500) * 1000
happy5 = ((x % 500) // 5) * 5
print(happy500 + happy5)
Buggy code:
n=int(input())
happy=0
def covid(num):
  if num==0:
    return 0
  else:
    fund=num//500
    num-=fund*500
    happy+=fund*1000
    happy+=num//5*5
    return happy
print(covid(n))

Fixed code:
n=int(input())
def covid(num):
  if num==0:
    return 0
  else:
    happy=0
    fund=num//500
    num-=fund*500
    happy+=fund*1000
    happy+=num//5*5
    return happy
print(covid(n))
Buggy code:
money = int(input())
fh = n // 500
money -= 500 * fh
goen = money // 5

point = 1000 * fh + 5 * goen
print(point)

Fixed code:
money = int(input())
fh = money // 500
money -= 500 * fh
goen = money // 5

point = 1000 * fh + 5 * goen
print(point)
Buggy code:
X = int(input())
a = X // 500

Y = X - 500 * a
b = Y // 5
print(a)
print(a * 1000 + b * 5)


Fixed code:
X = int(input())
a = X//500
b = (X-500*a)//5
print(a*1000 + b*5)
Buggy code:
x = int(input())
a = x // 500
b = (x - a) // 5
print(1000*a + 5*b)


Fixed code:
x = int(input())

a = x // 500
b = (x-a*500) // 5

print(a*1000+b*5)
Buggy code:
x=int(input())

if n!=0:
	ans1=n//500
	sub=n-(ans1*500)
	ans2=sub//5

	print((ans1*1000)+(ans2*5))

else:
	print(0)

Fixed code:
n=int(input())
 
if n!=0:
	ans1=n//500
	sub=n-(ans1*500)
	ans2=sub//5
 
	print((ans1*1000)+(ans2*5))
 
else:
	print(0)
Buggy code:
x = int(input())

a = x//500
b = (x - a*500)//5
print(a,b)
print(a*1000 + b*5)


Fixed code:
x = int(input())

a = x//500
b = (x - a*500)//5
print(a*1000 + b*5)
Buggy code:
X = input()
a=X//500
b=(X-500*a)//5
print(1000*a+5*b)

Fixed code:
X = int(input())
a=X//500
b=(X-500*a)//5
print(1000*a+5*b)
Buggy code:
s=int(input())
temp=0
temp+=(s//500)*1000
s=s//500
temp+=(s//5)*5
print(temp)

Fixed code:
s=int(input())
temp=0
temp+=(s//500)*1000
s=s%500
temp+=(s//5)*5
print(temp)
Buggy code:
x = int(input())

if x%500 == 0:
  print(x*2)
else:
  ans = x//500 + (x//5)*5
  print(ans)


Fixed code:
x = int(input())
 
if x%500 == 0:
  print(x*2)
else:
  X = (x//500)
  ans = (X*1000) + ((x%500)//5)*5
  print(ans)
Buggy code:
x = int(input())
a = x // 500
b = x % 500
b /= 5
print(int(a * 1000 + b * 5))

Fixed code:
x=int(input())

a = x//500*1000 + (x%500//5)*5

print(a)
Buggy code:
import math
n=int(input())
t=(n//500)*1000
s=(n-t*500//5)*5
print(t+s)


Fixed code:
import math
n=int(input())
t=(n//500)
s=((n-t*500)//5)*5
print(t*1000+s)
Buggy code:
a = int(input())
if a==0:
    print(0)
b = a//500
c = a%500
if c!=0:
    d = c//5
    print((b*1000)+d*5)
elif c==0:
    print(b*1000)

Fixed code:
a = int(input())
b = a//500
c = a%500
if c!=0:
    d = c//5
    print((b*1000)+(d*5))
elif c==0:
    print(b*1000)
Buggy code:
n = int(input())

a = n//500
b = (n - a * 500) //5
ans = a * 1000 + b
print(ans)



Fixed code:
n = int(input())
 
a = n//500
b = (n - a * 500) //5
ans = a * 1000 + b * 5
print(ans)
Buggy code:
i=int(input())

print((i//500)*1000+(i-(i//500*500)//5*5))


Fixed code:
i=int(input())

print((i//500)*1000+((i-(i//500*500))//5*5))