qyliang/CodeNanoFix huggingface dataset:
Buggy code:
people = int(input()) - 1
boss = input().split(' ')
boss = list(map(int,boss))
dict_boss = {}
for i in range(people):
	if boss[i]-1 not in dict_boss:
		dict_boss[boss[i]-1] = 1
	else:
		dict_boss[boss[i]-1] += 1
boss = [0] * people
for key in dict_boss:
	boss[key] = dict_boss[key]
for i in boss:
	print(i)

Fixed code:
people = int(input()) - 1
boss = input().split(' ')
boss = list(map(int,boss))
dict_boss = {}
for i in range(people):
	if boss[i]-1 not in dict_boss:
		dict_boss[boss[i]-1] = 1
	else:
		dict_boss[boss[i]-1] += 1
boss = [0] * (people + 1)
for key in dict_boss:
	boss[key] = dict_boss[key]
for i in boss:
	print(i)
Buggy code:
n=int(input())
a=list(map(int,input().split()))
b=[]*n
for i in range(n):
  b[a[i]-1]+=1
for i in range(n):
  print(b[i])


Fixed code:
n = int(input())
a = list(map(int, input().split()))

b = [0 for i in range(n)]

for i in a:
    b[i-1] += 1

for i in b:
    print(i)
Buggy code:
n = int(input())
hash = [0 for i in range(n))
a = [int(i) for i in input().split()]
for i in a:
	hash[i-1] += 1
for i in hash:
	print(i)

Fixed code:
n = int(input())
hash = [0 for i in range(n)]
a = [int(i) for i in input().split()]
for i in a:
	hash[i-1] += 1
for i in hash:
	print(i)
Buggy code:
N=int(input())
josi = list(map(int,input().split()))
count=[0]*N
n=0
while n<N-1:
  count[josi[n]] =count[josi[n]]+1
  n=n+1
n=0
while n<N:
  print(count[n])

      

Fixed code:
N=int(input())
josi = list(map(int,input().split()))
count=[0]*N
n=0
while n<N-1:
  count[josi[n]-1] =count[josi[n]-1]+1
  n=n+1
n=0
while n<N:
  print(count[n])
  n=n+1
Buggy code:
from collections import deafualtdict
n=int(input())
ar=list(map(int,input().split()))
d=defaultdict(int)
for i in ar:
  d[i]+=1
for i in range (1,n+1):
  if i in d.keys():
    print(d[i])
  else:
    print(0)


Fixed code:
from collections import defaultdict
n=int(input())
ar=list(map(int,input().split()))
d=defaultdict(int)
for i in ar:
  d[i]+=1
for i in range (1,n+1):
  if i in d.keys():
    print(d[i])
  else:
    print(0)
Buggy code:
n=int(input())
w=list(map(int,input().split()))
a=[0]*(n)

for i in range(n-1):
    a[w[i]-1]+=1
print(a)

Fixed code:
n=int(input())
a=list(map(int,input().split()))
ans=[0]*n
for i in a:
    ans[i-1]+=1
for i in range(n):
    print(ans[i])
Buggy code:
N = int(input())
A = list(map(int,input().split()))
l = [0]*N
for i in A:
  l[i-1] += 1
print(l,sep="\n")

Fixed code:
N = int(input())
A = list(map(int,input().split()))
l = [0]*N
for i in A:
  l[i-1] += 1
print(*l,sep="\n")
Buggy code:
N = int(input())
A = list(map(int,input().split()))
l = [0]*N
for i in range(N+1):
  l[A[i]-1] += 1
for i in range(N):
  print(l[i])

Fixed code:
N = int(input())
A = list(map(int,input().split()))
l = [0]*N
for i in range(N-1):
    l[A[i]-1] += 1
for i in range(N):
    print(l[i])
Buggy code:
a=int(input())
b=[0]*a
c=list(map(int,input().split()))
for i in c:
    b[i-0]+=1
print(*b,sep="\n")

Fixed code:
a=int(input())
b=[0]*a
c=list(map(int,input().split()))
for i in c:
    b[i-1]+=1
print(*b,sep="\n")
Buggy code:
from collections import defaultdict
n = int(input())
a = list(map(int,input().split()))
a = [0] + a
cnt = defaultdict(lambda :0)

for i in a:
    cnt[i - 1] += 1

for i in a:
    print(cnt[i - 1])
    cnt[i - 1] = 0


Fixed code:
from collections import defaultdict
n = int(input())
a = list(map(int,input().split()))

cnt = defaultdict(lambda :0)
for i in a:
    cnt[i] += 1

for i in range(1, n + 1):
    print(cnt[i])
Buggy code:
num = int(input())
li = list(int(x) for x in input().split())
li2 = [0] * num
num = len(li)
for i in li:
  li2[i - 1] = li2[i - 1] + i
for j in range(num):
  print(li2[j])
  

Fixed code:
num = int(input())
li = list(int(x) for x in input().split())
li2 = [0] * num
num = len(li)
for i in li:
  li2[i - 1] = li2[i - 1] + 1
for j in range(num + 1):
  print(li2[j])
Buggy code:
N = int(input())
a = list(map(int, input().split()))
li = [0] * N
print(li)

for i in range(N-1):
    li[a[i]-1] = li[a[i]-1] + 1

for i in range(N):
    print(li[i])


Fixed code:
N = int(input())
a = list(map(int, input().split()))
li = [0] * N

for i in range(N-1):
    li[a[i]-1] = li[a[i]-1] + 1

for i in range(N):
    print(li[i])
Buggy code:
import collections
N = int(input())
A = deque(map(int, input().split()))

C = collections.Counter(A)

for i in range(1, N+1):
    if i in C.keys():
        print(C[i])
    else:
        print(0)

Fixed code:
import collections
N = int(input())
A = list(map(int, input().split()))

C = collections.Counter(A)

for i in range(1, N+1):
    if i in C.keys():
        print(C[i])
    else:
        print(0)
Buggy code:
from collections import Counter

n = int(input())
As = list(map(int, input().split()))

ct = Counter(As)

for i in range(n):
	if i in ct.keys():
		print(ct[i])
	else:
		print('0')

Fixed code:
from collections import Counter

n = int(input())
As = list(map(int, input().split()))

ct = Counter(As)

for i in range(1,n+1):
	if i in ct.keys():
		print(ct[i])
	else:
		print('0')
Buggy code:
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    N=I()
    A=LI()
    ans=[0]*N
     
     
    for i in range(N):
        ans[A[i]-1]+=1
        
    for i in range(N):
        print(ans[i])

main()


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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    N=I()
    A=LI()
    ans=[0]*N
     
     
    for i in range(N-1):
        ans[A[i]-1]+=1
        
    for i in range(N):
        print(ans[i])

main()
Buggy code:
 n=int(input())
    boss=[int(x) for x in input().split()]
    mem=list(range(1, n+1))
    h_map = dict.fromkeys(mem, 0)
    for i in boss:
      h_map[i]+=1
    for i in mem:
      print(h_map[i])

Fixed code:
n=int(input())
boss=[int(x) for x in input().split()]
mem=list(range(1, n+1))
h_map = dict.fromkeys(mem, 0)
for i in boss:
    h_map[i]+=1

for i in mem:
    print(h_map[i])
Buggy code:
N = int(input())
A = list(map(int, input().split()))


A.sort()
A.append(N + 1)
ans = [0] * (N+1)
count = [0, 0]

for i in range(N):
    if count[0] == A[i]:
        count[1] += 1
    else:
        ans[count[0]] = count[1]
        count[0] = A[i]
        count[1] = 1

print(ans[1:N+1])

Fixed code:
N = int(input())
A = list(map(int, input().split()))


A.sort()
A.append(N + 1)
ans = [0] * (N+1)
count = [0, 0]

for i in range(N):
    if count[0] == A[i]:
        count[1] += 1
    else:
        ans[count[0]] = count[1]
        count[0] = A[i]
        count[1] = 1

for j in range(1, N+1):
    print(ans[j])
Buggy code:
n = int(input())
A = list(map(int,input().split()))

ans = [0]*n
for a in A:
  ans[a-1]+=1
print(ans)

Fixed code:
n = int(input())
A = list(map(int,input().split()))

ans = [0]*n
for a in A:
  ans[a-1]+=1
for a in ans:
  print(a)
Buggy code:
n=int(input())
a=list(map(int, input().split()))
b=[0]*n
for i in range(1,n+1):
  b[i-1]=a.count(i)
for i in b:
  print(b)

Fixed code:
n=int(input())
a=list(map(int, input().split()))
b= [0]*n
for i in a:
  b[i-1]+=1
for i in b:
  print(i)
Buggy code:
n=input()
result=''
for s in n:
    if s=='7':
        result+='Yes'
    else:
        continue
if result=='Yes':
    print(result)
else:
    print('No')

Fixed code:
n=input()
result=''
for s in n:
    if s=='7':
        result+='Yes'
        break
    else:
        continue
if result=='Yes':
    print(result)
else:
    print('No')
Buggy code:
N = input()

if '7'in N:
  print('Yes')
 else:
  print('No')

Fixed code:
N = input()
 
if '7'in N:
  print('Yes')
else:
  print('No')
Buggy code:
input = x:
if '7' in x:
    print('Yes')
else:
    print('No')

Fixed code:
x = input()
if '7' in x:
    print('Yes')
else:
    print('No')
Buggy code:
n = input()
if n.count(7)>0:
  print('Yes')
else:
  print('No')

Fixed code:
n = input()
if n.count("7") == 0:
    print("No")
else:
    print("Yes")
Buggy code:
s=input()
count=0
for i in s:
  if i=="7":
    print("Yes")
    count+=1
  else:
    pass
if count==0:
  print("No")

Fixed code:
s=input()
count=0
for i in s:
  if i=="7":
    print("Yes")
    count+=1
    break
  else:
    pass
if count==0:
  print("No")
Buggy code:
n = input()
i = 7
if i in n:
 print('Yes')
else:
  print('No')

Fixed code:
n = input()

if '7' in n:
    print('Yes')
else:
    print('No')
Buggy code:
# A Lucky 7

N = input()

for n in N:
  if n == "7":
    print("Yes")
else:
  print("No")

Fixed code:
# A Lucky 7

N = input()

for n in N:
  if n == "7":
    print("Yes")
    exit()
else:
  print("No")
Buggy code:
from sys import stdin
import math
import fractions

n = stdin.readline().rstrip()

if n in '7':
    print('Yes')
else:
    print('No')

Fixed code:
from sys import stdin
import math
import fractions

n = stdin.readline().rstrip()

if '7' in n:
    print('Yes')
else:
    print('No')
Buggy code:
import sys
def input(): return sys.stdin.readline().rstrip()

N = input()

print(N)
if '7' in N:
    print('Yes')
else:
    print('No')



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

N = input()

if '7' in N:
    print('Yes')
else:
    print('No')
Buggy code:
"""
    Author : thekushalghosh
    Team   : CodeDiggers
"""
import sys,math,cmath,time
start_time = time.time()
################# ---- USER DEFINED INPUT FUNCTIONS ---- #################
def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    s = input()
    return(s[:len(s) - 1])
def invr():
    return(map(int,input().split()))
##########################################################################
################# ---- THE ACTUAL CODE STARTS BELOW ---- #################
 
def solve():
  n = inp()
  if "7" in list(str(n)):
    print("YES")
  else:
    print("NO")
################## ---- THE ACTUAL CODE ENDS ABOVE ---- ##################
##########################################################################
ONLINE_JUDGE = __debug__
if not ONLINE_JUDGE:
    sys.stdin = open('input.txt','r')
    sys.stdout = open('output.txt','w')
else:
    input = sys.stdin.readline
t = 1
t = inp()
for tt in range(t):
    solve()
if not ONLINE_JUDGE:
    print("Time Elapsed:",time.time() - start_time,"seconds")
sys.stdout.close()

Fixed code:
"""
    Author : thekushalghosh
    Team   : CodeDiggers
"""
import sys,math,cmath,time
start_time = time.time()
################# ---- USER DEFINED INPUT FUNCTIONS ---- #################
def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    s = input()
    return(s[:len(s) - 1])
def invr():
    return(map(int,input().split()))
##########################################################################
################# ---- THE ACTUAL CODE STARTS BELOW ---- #################
 
def solve():
  n = inp()
  if "7" in list(str(n)):
    print("Yes")
  else:
    print("No")
################## ---- THE ACTUAL CODE ENDS ABOVE ---- ##################
##########################################################################
ONLINE_JUDGE = __debug__
if not ONLINE_JUDGE:
    sys.stdin = open('input.txt','r')
    sys.stdout = open('output.txt','w')
else:
    input = sys.stdin.readline
t = 1
for tt in range(t):
    solve()
if not ONLINE_JUDGE:
    print("Time Elapsed:",time.time() - start_time,"seconds")
sys.stdout.close()
Buggy code:
N=input()
def d(N):
    return "Yes" if "7" in N else "No"
print(d(n))

Fixed code:
N=input()
def d(N):
    return "Yes" if "7" in N else "No"
print(d(N))
Buggy code:
n = int(input())
a = n.find("7")
if a>-1:
  print("Yes")
else :
  print("No")

Fixed code:
n = int(input())
a = str(n).find("7")
if a>-1:
    print("Yes")
else :
    print("No")
Buggy code:
i_str = str(input())
if i_str.find('7') > 0:
  print('Yes')
else:
  print('No')

Fixed code:
i_str = str(input())
if i_str.find('7') >= 0:
  print('Yes')
else:
  print('No')
Buggy code:
n = input()

if '7' in n:
  print('Yes')
else:
  ptint('No')

Fixed code:
n=input()
if "7"in n:
  print("Yes")
else:
  print("No")
Buggy code:
N=input()

if N in "7":
  print("Yes")
else:
  print("No")

Fixed code:
N = input()
if "7" in N: print("Yes")
else: print("No")
Buggy code:
N = str(input())
flag = True
for i in range(len(N)):
    if N[i] == "7":
        flag = True
        
if flag:    
    print("Yes")
else:
    print("No")

Fixed code:
N = input()

flag = False
for i in range(len(N)):
  if N[i] =="7":
    flag =True
if flag:
  print ("Yes")
else :
  print ("No")
Buggy code:
# -*- coding: utf-8 -*-
  
N = input()
for i in N:
    if i == '7':
        print('Yes')
        break
        
print('No')

Fixed code:
# -*- coding: utf-8 -*-
  
N = input()
flag = 'No'
for i in N:
    if i == '7':
        flag = 'Yes'
        
print(flag)
Buggy code:
a = input()
f=0
for i in a:
  if(a=='7'):
    f = 1
    break
if(f==0):print("No")
else:print("Yes")

Fixed code:
a = input()
f=0
for i in a:
    if(i=='7'):
        f = 1
        break
if(f==0):print("No")
else:print("Yes")
Buggy code:
m = list(input())
print(m)

if "7" in m:
    print("Yes")
else:
    print("No")


Fixed code:
m = list(input())

if "7" in m:
    print("Yes")
else:
    print("No")
Buggy code:
N = input()
if "7" in N:
  print("Yes"):
else:
  print("No")

Fixed code:
N = list(input())

if '7' in N:
    print("Yes")
else:
    print("No")
Buggy code:
n = input()
if n in "7":
    print("Yes")
else:
    print("No")



Fixed code:
n = input()

if "7" in n:
  print("Yes")
else:
  print("No")
Buggy code:
N = input()
if N in '7':
    print('Yes')
else:
    print('No')

Fixed code:
N = input()


if '7' in N:
    print('Yes')
else:
    print('No')
Buggy code:
n=input()
if n.count("7")!=0:
  
  print("Yes)
else:
  print("No")

Fixed code:
n=input()
if n.count("7")!=0:
    print("Yes")
else:
    print("No")
Buggy code:
N=str(input())
if "7" in N:
  print("Yes")
else:
  print("No)


Fixed code:
N = input()

print('Yes' if '7' in str(N) else 'No')
Buggy code:
N=input()
if "7" in N:
  print("Yes")
else:
  print("No)

Fixed code:
N=str(input())
if "7" in N:
  print("Yes")
else:
  print("No")
Buggy code:
N=input()
if 7 in N:
  print("Yes")
else:
  print("No")

Fixed code:
N = input()
if("7" in N):
    print("Yes")
else:
    print("No")
Buggy code:
n = list(int(input()))

if 7 in n:
  print("Yes")
else:
  print("No")

Fixed code:
n = list(input())

if '7' in n:
  print("Yes")
else:
  print("No")
Buggy code:
N = str(input())

if "7" in N:
  print("Yes")
  
else:
  print("No")ｃ

Fixed code:
N = str(input())
if "7" in N:
  print("Yes")
else:
  print("No")
Buggy code:
n = int(input())
if 7 in n:
  print("Yes")
else:
  print("No")

Fixed code:
n= input()

if ("7" in n):
  print("Yes")
else:
  print("No")
Buggy code:
def check_has_7(i):
    for n in range(len(str(i))):
        print(str(i)[n])
        if(str(i)[n] == '7'):
            return "Yes"
    return "No"

a = int(input())
print(format(check_has_7(a)))



Fixed code:
def check_has_7(i):
    for n in range(len(str(i))):
        if(str(i)[n] == '7'):
            return "Yes"
    return "No"

a = int(input())
print(format(check_has_7(a)))
Buggy code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

#N, K, C = map(int, readline().split())  int
#S = read().rstrip().decode()  string
# N =int(read())
#print(C,A,B)

x=read()
if ''7' in x:
	print("Yes")
else:
	print("No")

Fixed code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

#N, K, C = map(int, readline().split())  int
#S = read().rstrip().decode()  string
# N =int(read())
#print(C,A,B)

x=read().rstrip().decode()

if '7' in x:
	print("Yes")
else:
	print("No")
Buggy code:
N=input()

if 7 in N:
  print("Yes")
else:
  print("No")

Fixed code:
N = str(input())
if '7' in N:
    print('Yes')
else:
    print('No')
Buggy code:
n = input()
if '7' in j:
  print("Yes")
else:
  print("No")

Fixed code:
n = input()
if '7' in n:
  print("Yes")
else:
  print("No")
Buggy code:
n = input()
if n in "7":
    print("Yes")
else:
   print("No")

Fixed code:
n=input()
if '7' in n:
    print('Yes')
else:
    print('No')
Buggy code:
a = int(input())
toprint = False
while N > 0 :
 	last_digit = a % 10
 		a = a // 10
	if last_digit == 7 :
   		toprint = True
 
	elif toprint == True :
 		print ("Yes")
	else :
 		print ("No")

Fixed code:
a = int(input())
toprint = False
while a > 0 :
 last_digit = a % 10
 a = a // 10
 if last_digit == 7 :
   toprint = True
 
if toprint == True :
 print ("Yes")
else :
 print ("No")
Buggy code:
N = input()

if N in "7":
    print("Yes")
else:
   print("No")

Fixed code:
N=input()
if "7" in N:
  print('Yes')
else:
  print('No')
Buggy code:
N = str(input())
enc = 0

for char in list(N):
  if char == "7":
    enc +=1
    
if enc >= 1:
  return "Yes"
else:
  return "No"

Fixed code:
N = str(input())
enc = 0

for char in list(N):
  if char == "7":
    enc += 1
    
if enc >= 1:
  print("Yes") 
else:
  print("No")
Buggy code:
n=input()

    if  '7' in n:
        print('Yes')
    else:
        print('No')

Fixed code:
n = input()

if "7" in n:
  print("Yes")
else:
  print("No")
Buggy code:
N = int(input())
l = len(N)
for i in range(l):
  if N[i] ==7:
    print("Yes")
    exit()
print("No")    

Fixed code:
N = input()
l = len(N)
for i in range(l):
  if N[i] =="7":
    print("Yes")
    exit()
print("No")
Buggy code:
N = list(input())
if 7 in N:
    print('Yes')
else:
    print('No')

Fixed code:
N = list(input())
if '7' in N:
    print('Yes')
else:
    print('No')
Buggy code:
input_string = input()
yes = 0
for n in input_string:
  if n == '7':
    print('Yes')
    yes = 1
    break
if yes:
  print('No')

Fixed code:
input_string = input()
yes = 0
for n in input_string:
  if n == '7':
    print('Yes')
    yes = 1
    break
if not yes:
  print('No')
Buggy code:
item = input()
if 7 in item:
  print("Yes")
else:
  print("No")

Fixed code:
item = input()
if "7" in item:
  print("Yes")
else:
  print("No")
Buggy code:
N=int(input())
if N.count('7')==0:
  print('No')
  
else:
  print('Yes')

Fixed code:

N=input()
if N.count('7')==0:
  print('No')
  
else:
  print('Yes')
Buggy code:
import sys

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

N = str(sys.stdin.read())
flag = False

for s in N:
    print(s)

    if s == '7':
        flag = True

if flag:
    print('Yes')
else:
    print('No')


Fixed code:
import sys

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

N = str(sys.stdin.read())
flag = False

for s in N:
    if s == '7':
        flag = True

if flag:
    print('Yes')
else:
    print('No')
Buggy code:
flg = 0
for s in n:
    if s == '7':
        print(s)
        flg = 1

if flg == 1:
      print('Yes')
else:
      print('No')


Fixed code:
n=input()
flg = 0
for s in n:
    if s == '7':
        flg = 1
 
if flg == 1:
      print('Yes')
else:
      print('No')
Buggy code:
num = input()
flag = False
for i in range(num):
  if num[i] == '7':
    flag = True
    break
if flag:
  print("Yes")
else:
  print("No")

Fixed code:
num = input()
flag = False
for i in range(len(num)):
    if num[i] == '7':
        flag = True
        break
if flag:
    print("Yes")
else:
    print("No")
Buggy code:
n = input()
print('Yes') if n in '7' else print('No')

Fixed code:
n = input()
print('Yes') if '7' in n else print('No')
Buggy code:
N =input()

flag = 0
for i in range(len(N)):
	if N[i] == "7":
		flag = 1
		break

if flag == 1:
	print("Yes")
else:
	print("No"

Fixed code:
N = input()

flag = 0
for i in range(len(N)):
	if N[i] == "7":
		flag = 1
		break

if flag == 1:
	print("Yes")
else:
	print("No")
Buggy code:
l = list(map(int, input()))
if 7 in list:
  print("Yes")
else:
  print("No")
  

Fixed code:
l = list(map(int, input()))
if 7 in l:
  print("Yes")
else:
  print("No")
Buggy code:
n=input()
flag=0
for i in n:
    if i=='7':
        flag=1
if flag==1:
    print('Yes')
else
    print('No')

Fixed code:
n=input()
n=list(n)
flag=0
for i in n:
    if i=='7':
        flag=1
if flag==1:
    print('Yes')
else:
    print('No')
Buggy code:
S =　list(input())
if "7" in S:
  print('Yes')
else:
  print('No')

Fixed code:
S =list(str(input()))
if "7" in S:
  print('Yes')
else:
  print('No')
Buggy code:
N = input().split('7')
print(N)
if len(N)>1:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)

Fixed code:
N = input().split('7')
#print(N)
if len(N)>1:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)
Buggy code:
s= input()
i=0
res=[]
while i< len(s):
  j=s[i:i+1]
  res.append(j)
  i+=1
print('Yes' if str(7) in res else 'NO')

Fixed code:
s= input()
i=0
res=[]
while i< len(s):
  j=s[i:i+1]
  res.append(j)
  i+=1
print('Yes' if str(7) in res else 'No')
Buggy code:
n = str(input())
a = str(7)
if n in a:
  print('Yes')
else:
  print('No')

Fixed code:
n = str(input())
a = '7'
if a in n:
  print('Yes')
else:
  print('No')
Buggy code:
n=input()

'Yes' if '7' in n else 'No'

Fixed code:
n=input()
 
print('Yes') if '7' in n else print('No')
Buggy code:
N=int(input())
C=str(N)
c=0
for i in range(len(C)):
  if C[i]==7:
    c+=1
if c==0:
  print("No")
else:
  print("Yes")

Fixed code:
N=int(input())
C=str(N)
c=0
for i in range(len(C)):
  if int(C[i])==7:
    c+=1
if c==0:
  print("No")
else:
  print("Yes")
Buggy code:
N = input()

flag = False

for char in N:
  if char == '7':
    print('Yes')
    flag = True

if flag == False:   
  print('No')

Fixed code:
N = input()

flag = False

for char in N:
  if char == '7':
    print('Yes')
    flag = True
    break

if flag == False:   
  print('No')
Buggy code:
a=str(input().count('7'))
if(a>0):
  	print('Yes')
else :
  print('No')

Fixed code:
a=str(input())
if a.count('7')==0:
    print("No")
else:
    print("Yes")
Buggy code:
in=input()
ok=0
for i in range(len(in)):
  if(in[i]=='7'):
    print("Yes")
    ok=1
    break
if(ok==0):
  print("No")

Fixed code:
inp=input()
ok=0
for i in range(len(inp)):
  if(inp[i]=='7'):
    print("Yes")
    ok=1
    break
if(ok==0):
  print("No")
Buggy code:
x = list(input())
j = 0
for i in x:
  print(i)
  if int(i) != 7:
    j = 1

if j == 0:
  print('Yes')
else:
  print('No')

Fixed code:
x = list(input())
j = 0
for i in x:
  if int(i) == 7:
    j = 1

if j == 1:
  print('Yes')
else:
  print('No')
Buggy code:
n = str(input())

for i in range(len(n)):
  if n[i]=="7":
    print("Yes")
  if i == n-1:
    print("No")


Fixed code:
n = str(input())

for i in range(len(n)):
  if n[i]=="7":
    print("Yes")
    break
  if i == len(n)-1:
    print("No")
Buggy code:
l = list(input())
if 7 in l:
         print('Yes')
else:
         print('No')

Fixed code:
l = list(str(input()))
if '7' in l:
         print('Yes')
else:
         print('No')
Buggy code:
N = str(input())
if N in 7:
  print("Yes")
else:
  print("No")

Fixed code:
N = str(input())

if "7" in N:
    print("Yes")

else:
    print("No")
Buggy code:
if "7" in str(input()):
  print("Yes")
else:
  print("No)

Fixed code:
if "7" in str(input()):
    print("Yes")
else:
    print("No")
Buggy code:
n=int(input())
if '7' in n:
    print('Yes')
else:
    print('No')

Fixed code:
n = input()

if '7' in n:
    print("Yes")
else:
    print("No")
Buggy code:
N = input()
if "7" in "N":
  print("Yes")
else:
  print("No")

Fixed code:
N=list(input())
if '7' in N:
  print('Yes')
else:
  print('No')
Buggy code:
if "7" in input()
 print("Yes")
else print("No")

Fixed code:
print("Yes" if ('7' in list(input())) else "No")
Buggy code:
N = int(input())

a = N%10
b = (N//10)%10
c = (N//100)%10

print(a, b ,c)

if a==7 or b==7 or c==7:
    print('Yes')
else:
    print('No')


Fixed code:
N = int(input())

a = N%10
b = (N//10)%10
c = (N//100)%10
if a==7 or b==7 or c==7:
    print('Yes')
else:
    print('No')
Buggy code:
N = int(input())
has = False
for n in N:
	if n == 7:
		has = True
		break
	
if has:
	print("Yes")
else:
	print("No")
	

Fixed code:
N = int(input())
has = False
for n in str(N):
	if n == "7":
		has = True
		break
	
if has:
	print("Yes")
else:
	print("No")
Buggy code:
N=input()
for idx in len(N):
  if N[idx] == 7:
    print('Yes')
    break
else:
  print('No')

Fixed code:
N=input()
for idx in range(len(N)):
  if N[idx] == str(7):
    print('Yes')
    break
else:
  print('No')