Problem:


Score : 100 points

Problem Statement

Given is a three-digit integer N. Does N contain the digit 7?

If so, print Yes; otherwise, print No.

Constraints

100 \leq N \leq 999

Input

Input is given from Standard Input in the following format:

N

Output

If N contains the digit 7, print Yes; otherwise, print No.

Sample Input 1

117

Sample Output 1

Yes

117 contains 7 as its last digit.

Sample Input 2

123

Sample Output 2

No

123 does not contain the digit 7.

Sample Input 3

777

Sample Output 3

Yes



Sample input:
117


Sample output:
Yes

Submission status: Time Limit Exceeded

Solution code:
import numpy as np
K = (int)(input())
sum = 0
for a in range(1,K+1):
    for b in range(1,K+1):
        for c in range(1,K+1):
            sum += np.gcd(np.gcd(a,b),c)
print(sum)

Submission status: Time Limit Exceeded

Solution code:
n = (int(input()))
while n > 0:
  if n%10==7:
    print('Yes')
    break
  elif n < 10:
    print('No')
  else:
    n /= 10

Submission status: Accepted

Solution code:
N = input()
if len([d for d in N if d == '7']):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N=input()


if N[0]=="7" or N[1]=="7" or N[2]=="7":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
def readinput():
    n=input()
    return n

def main(n):
    if n[0]=='7' or n[1]=='7' or n[2]=='7':
        return 'Yes'
    else:
        return 'No'

if __name__=='__main__':
    n=readinput()
    ans=main(n)
    print(ans)

Submission status: Accepted

Solution code:
n = input()
for i in range(len(n)):
    if(n[i] == '7'):
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
S=input()
if S[0]=='7' or S[1]=='7' or S[2]=='7':
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n=input()
if n.count('7')>0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n=input()
count=n.count("7")
if count!=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

N = input()

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

Submission status: Accepted

Solution code:
N = input()

if N[0] == '7' or N[1] == '7' or N[2] == '7':
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
if n[0] =='7' or n[1]=='7' or n[2] == '7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=list(input())
if ('7' in n) ==True:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
s = input()
if "7" in s:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=input()
ans=0
for i in range(len(N)):
    if N[i]=='7':
        ans=1
        break
if ans==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
a=int(N[0])
b=int(N[1])
c=int(N[2])
 
if a==7 or b==7 or c==7:
  print('Yes')
else :
  print('No')

Submission status: Accepted

Solution code:
n = input()
if '7' in n :
    print('Yes')
else :
    print('No')

Submission status: Accepted

Solution code:
n = list(input())

for i in n:
    if i == '7':
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
n = list(input())

for i in n:
    if i == '7':
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
n = input()
if '7' in n:
  print('Yes')
  exit()
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()
ans = 'No'
for i in n:
    if i == '7':
        ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = int(input())
if N == 107:
  print('Yes')
elif N == 117:
  print('Yes')
elif N == 127:
  print('Yes')
elif N == 137:
  print('Yes')
elif N == 147:
  print('Yes')
elif N == 157:
  print('Yes')
elif N == 167:
  print('Yes')
elif N == 170:
  print('Yes')
elif N == 171:
  print('Yes')
elif N == 172:
  print('Yes')
elif N == 173:
  print('Yes')
elif N == 174:
  print('Yes')
elif N == 175:
  print('Yes')
elif N == 176:
  print('Yes')
elif N == 177:
  print('Yes')
elif N == 178:
  print('Yes')
elif N == 179:
  print('Yes')
elif N == 187:
  print('Yes')
elif N == 197:
  print('Yes')
elif N == 207:
  print('Yes')
elif N == 217:
  print('Yes')
elif N == 227:
  print('Yes')
elif N == 237:
  print('Yes')
elif N == 247:
  print('Yes')
elif N == 257:
  print('Yes')
elif N == 267:
  print('Yes')
elif N == 270:
  print('Yes')
elif N == 271:
  print('Yes')
elif N == 272:
  print('Yes')
elif N == 273:
  print('Yes')
elif N == 274:
  print('Yes')
elif N == 275:
  print('Yes')
elif N == 276:
  print('Yes')
elif N == 277:
  print('Yes')
elif N == 278:
  print('Yes')
elif N == 279:
  print('Yes')
elif N == 287:
  print('Yes')
elif N == 297:
  print('Yes')
elif N == 307:
  print('Yes')
elif N == 317:
  print('Yes')
elif N == 327:
  print('Yes')
elif N == 337:
  print('Yes')
elif N == 347:
  print('Yes')
elif N == 357:
  print('Yes')
elif N == 367:
  print('Yes')
elif N == 370:
  print('Yes')
elif N == 371:
  print('Yes')
elif N == 372:
  print('Yes')
elif N == 373:
  print('Yes')
elif N == 374:
  print('Yes')
elif N == 375:
  print('Yes')
elif N == 376:
  print('Yes')
elif N == 377:
  print('Yes')
elif N == 378:
  print('Yes')
elif N == 379:
  print('Yes')
elif N == 387:
  print('Yes')
elif N == 397:
  print('Yes')
elif N == 407:
  print('Yes')
elif N == 417:
  print('Yes')
elif N == 427:
  print('Yes')
elif N == 437:
  print('Yes')
elif N == 447:
  print('Yes')
elif N == 457:
  print('Yes')
elif N == 467:
  print('Yes')
elif N == 470:
  print('Yes')
elif N == 471:
  print('Yes')
elif N == 472:
  print('Yes')
elif N == 473:
  print('Yes')
elif N == 474:
  print('Yes')
elif N == 475:
  print('Yes')
elif N == 476:
  print('Yes')
elif N == 477:
  print('Yes')
elif N == 478:
  print('Yes')
elif N == 479:
  print('Yes')
elif N == 487:
  print('Yes')
elif N == 497:
  print('Yes')
elif N == 507:
  print('Yes')
elif N == 517:
  print('Yes')
elif N == 527:
  print('Yes')
elif N == 537:
  print('Yes')
elif N == 547:
  print('Yes')
elif N == 557:
  print('Yes')
elif N == 567:
  print('Yes')
elif N == 570:
  print('Yes')
elif N == 571:
  print('Yes')
elif N == 572:
  print('Yes')
elif N == 573:
  print('Yes')
elif N == 574:
  print('Yes')
elif N == 575:
  print('Yes')
elif N == 576:
  print('Yes')
elif N == 577:
  print('Yes')
elif N == 578:
  print('Yes')
elif N == 579:
  print('Yes')
elif N == 587:
  print('Yes')
elif N == 597:
  print('Yes')
elif N == 607:
  print('Yes')
elif N == 617:
  print('Yes')
elif N == 627:
  print('Yes')
elif N == 637:
  print('Yes')
elif N == 647:
  print('Yes')
elif N == 657:
  print('Yes')
elif N == 667:
  print('Yes')
elif N == 670:
  print('Yes')
elif N == 671:
  print('Yes')
elif N == 672:
  print('Yes')
elif N == 673:
  print('Yes')
elif N == 674:
  print('Yes')
elif N == 675:
  print('Yes')
elif N == 676:
  print('Yes')
elif N == 677:
  print('Yes')
elif N == 678:
  print('Yes')
elif N == 679:
  print('Yes')
elif N == 687:
  print('Yes')
elif N == 697:
  print('Yes')
elif N == 700:
  print('Yes')
elif N == 701:
  print('Yes')
elif N == 702:
  print('Yes')
elif N == 703:
  print('Yes')
elif N == 704:
  print('Yes')
elif N == 705:
  print('Yes')
elif N == 706:
  print('Yes')
elif N == 707:
  print('Yes')
elif N == 708:
  print('Yes')
elif N == 709:
  print('Yes')
elif N == 710:
  print('Yes')
elif N == 711:
  print('Yes')
elif N == 712:
  print('Yes')
elif N == 713:
  print('Yes')
elif N == 714:
  print('Yes')
elif N == 715:
  print('Yes')
elif N == 716:
  print('Yes')
elif N == 717:
  print('Yes')
elif N == 718:
  print('Yes')
elif N == 719:
  print('Yes')
elif N == 720:
  print('Yes')
elif N == 721:
  print('Yes')
elif N == 722:
  print('Yes')
elif N == 723:
  print('Yes')
elif N == 724:
  print('Yes')
elif N == 725:
  print('Yes')
elif N == 726:
  print('Yes')
elif N == 727:
  print('Yes')
elif N == 728:
  print('Yes')
elif N == 729:
  print('Yes')
elif N == 730:
  print('Yes')
elif N == 731:
  print('Yes')
elif N == 732:
  print('Yes')
elif N == 733:
  print('Yes')
elif N == 734:
  print('Yes')
elif N == 735:
  print('Yes')
elif N == 736:
  print('Yes')
elif N == 737:
  print('Yes')
elif N == 738:
  print('Yes')
elif N == 739:
  print('Yes')
elif N == 740:
  print('Yes')
elif N == 741:
  print('Yes')
elif N == 742:
  print('Yes')
elif N == 743:
  print('Yes')
elif N == 744:
  print('Yes')
elif N == 745:
  print('Yes')
elif N == 746:
  print('Yes')
elif N == 747:
  print('Yes')
elif N == 748:
  print('Yes')
elif N == 749:
  print('Yes')
elif N == 750:
  print('Yes')
elif N == 751:
  print('Yes')
elif N == 752:
  print('Yes')
elif N == 753:
  print('Yes')
elif N == 754:
  print('Yes')
elif N == 755:
  print('Yes')
elif N == 756:
  print('Yes')
elif N == 757:
  print('Yes')
elif N == 758:
  print('Yes')
elif N == 759:
  print('Yes')
elif N == 760:
  print('Yes')
elif N == 761:
  print('Yes')
elif N == 762:
  print('Yes')
elif N == 763:
  print('Yes')
elif N == 764:
  print('Yes')
elif N == 765:
  print('Yes')
elif N == 766:
  print('Yes')
elif N == 767:
  print('Yes')
elif N == 768:
  print('Yes')
elif N == 769:
  print('Yes')
elif N == 770:
  print('Yes')
elif N == 771:
  print('Yes')
elif N == 772:
  print('Yes')
elif N == 773:
  print('Yes')
elif N == 774:
  print('Yes')
elif N == 775:
  print('Yes')
elif N == 776:
  print('Yes')
elif N == 777:
  print('Yes')
elif N == 778:
  print('Yes')
elif N == 779:
  print('Yes')
elif N == 780:
  print('Yes')
elif N == 781:
  print('Yes')
elif N == 782:
  print('Yes')
elif N == 783:
  print('Yes')
elif N == 784:
  print('Yes')
elif N == 785:
  print('Yes')
elif N == 786:
  print('Yes')
elif N == 787:
  print('Yes')
elif N == 788:
  print('Yes')
elif N == 789:
  print('Yes')
elif N == 790:
  print('Yes')
elif N == 791:
  print('Yes')
elif N == 792:
  print('Yes')
elif N == 793:
  print('Yes')
elif N == 794:
  print('Yes')
elif N == 795:
  print('Yes')
elif N == 796:
  print('Yes')
elif N == 797:
  print('Yes')
elif N == 798:
  print('Yes')
elif N == 799:
  print('Yes')
elif N == 807:
  print('Yes')
elif N == 817:
  print('Yes')
elif N == 827:
  print('Yes')
elif N == 837:
  print('Yes')
elif N == 847:
  print('Yes')
elif N == 857:
  print('Yes')
elif N == 867:
  print('Yes')
elif N == 870:
  print('Yes')
elif N == 871:
  print('Yes')
elif N == 872:
  print('Yes')
elif N == 873:
  print('Yes')
elif N == 874:
  print('Yes')
elif N == 875:
  print('Yes')
elif N == 876:
  print('Yes')
elif N == 877:
  print('Yes')
elif N == 878:
  print('Yes')
elif N == 879:
  print('Yes')
elif N == 887:
  print('Yes')
elif N == 897:
  print('Yes')
elif N == 907:
  print('Yes')
elif N == 917:
  print('Yes')
elif N == 927:
  print('Yes')
elif N == 937:
  print('Yes')
elif N == 947:
  print('Yes')
elif N == 957:
  print('Yes')
elif N == 967:
  print('Yes')
elif N == 970:
  print('Yes')
elif N == 971:
  print('Yes')
elif N == 972:
  print('Yes')
elif N == 973:
  print('Yes')
elif N == 974:
  print('Yes')
elif N == 975:
  print('Yes')
elif N == 976:
  print('Yes')
elif N == 977:
  print('Yes')
elif N == 978:
  print('Yes')
elif N == 979:
  print('Yes')
elif N == 987:
  print('Yes')
elif N == 997:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = list(input())


if N[0] == '7' or N[1] == '7' or N[2] == '7':
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

n = input()

ans = "No"
for i in n:
    if i == "7":
        ans = "Yes"
        
print(ans)

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = input()
print('Yes' if '7' in N else 'No')

Submission status: Accepted

Solution code:
N = input()
is_lucky_7 = 0
for i in N:
    if i == "7":
        is_lucky_7 = True
        break
if is_lucky_7:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
N = list(map(int,N))
print( 'Yes' if 7 in N else 'No')

Submission status: Accepted

Solution code:
s = input()
if '7' in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())
print(("No","Yes")["7" in S])

Submission status: Accepted

Solution code:
import sys
N = list(str(input()))
for i in range(3):
  if N[i] == '7':
    print('Yes')
    sys.exit()
print('No')

Submission status: Accepted

Solution code:
print("YNeos"['7' not in input()::2])

Submission status: Accepted

Solution code:
if '7' in input():
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
N_str = str(N)

if '7' in N_str:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
print('Yes' if '7' in n else 'No')

Submission status: Accepted

Solution code:
n = input()
if n[0] == '7' or n[1] == '7' or n[2] == '7':
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('Yes' if '7' in input() else ('No'))

Submission status: Accepted

Solution code:
if '7' in input():print('Yes')
else:print('No')

Submission status: Accepted

Solution code:
def resolve():
    n = input()
    print('Yes' if '7' in n else 'No')
resolve()

Submission status: Accepted

Solution code:
N = input()
ans = False
for i in N:
    if i is "7":
        ans = True
        break
    else:
        pass
if ans == True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 162 A
N = int(input())
A = int(N/100)
B = str(N)[1:2]
C = N%10
ans = [A,int(B),C]
print('Yes') if 7 in ans else print('No')

Submission status: Accepted

Solution code:
def main():
    n = input()

    print(["No", "Yes"]["7" in n])


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = input()
if a.count('7') == 0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
n = input()

print("Yes" if n.find('7') != -1 else "No")

Submission status: Accepted

Solution code:
n=int(input().strip())
ans= False
while(n != 0):
	rem= n % 10
	if(rem == 7):
		ans= True
		break
	n = n // 10
if(ans):
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
x = str(input())
y='No'
for k in x:
    if k == '7':
        y='Yes'

print(y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = input()
location = num.find('7')
if location == -1:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
N = input()
condition = False
for i in str(N):
  if (i=='7'):
      condition = True

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

Submission status: Accepted

Solution code:
n=int(input())
while(n!=0):
    digit=n%10
    if(digit==7):
        flag=1
        break
    else:
        flag=0
    n=n//10
if(flag==1):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
n = input()

if n[0] == '7' or n[1] == '7' or n[2] == '7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
inter = list(input())
flag = 0
for i in range(0, len(inter)):
    if inter[i] == "7":
        flag = 1

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

Submission status: Accepted

Solution code:
print("YNeos"["7"not in input()::2])

Submission status: Accepted

Solution code:
print('Yes' if '7' in input() else 'No')

Submission status: Accepted

Solution code:
print('Yes' if '7' in list(str(input().split())) else 'No')

Submission status: Accepted

Solution code:
num = input()
for i in range(len(num)):
  if num[i] == "7":
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
import sys
import math
from collections import defaultdict,deque

input = sys.stdin.readline
def inar():
    return [int(el) for el in input().split()]
def main():
    n=list(input().strip())
    if "7" in n:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = input()
print("Yes" if "7" in n else "No")

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
a = input()
if(a[0]=='7' or a[1]=='7' or a[2]=='7'):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = input()

for i in range(len(n)):
    if n[i] == '7':
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
a=int(input())
str_a=str(a)
list_a=list(str_a)
count=0
for i in range(0,len(list_a)):
	if(list_a[i]=='7'):
		count+=1
	else:
		count+=0
	
if(count>1 or count==1):
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
n = input()
if '7' in n:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

if(N[0] == '7' or N[1] == '7' or N[2] == '7'):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n=str(input())
cnt=0
for i in range(3):
    if n[i]=='7':
        cnt+=1
if cnt>=1:
    print('Yes')
else :
    print('No')

Submission status: Accepted

Solution code:
n = int(input())
while n!=0:
    if n%10 == 7:
        print("Yes")
        break
    n//=10
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()
if S[0]=='7' or S[1]=='7' or S[2]=='7':
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=str(input())
if N[0]==str(7) or N[1]==str(7) or N[2]==str(7):
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
i=input()
if i[2]=='7':
	print('Yes')
elif i[0]=='7':
	print('Yes')
elif i[1]=='7':
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
n = input()
if '7' in n:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=input()
print('Yes' if '7' in N else 'No')

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
print('Yes' if "7" in input() else 'No')

Submission status: Accepted

Solution code:
N = str(input())

for i, c in enumerate(list(N)):
  if c==str(7):
    print('Yes')
    break
  elif i==len(N)-1:
    print('No')

Submission status: Accepted

Solution code:
def main():
    N = input()
    if "7" in N:
        print("Yes")
    else:
        print("No")


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
print('Yes' if S.count('7') > 0 else 'No')

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
#ABC0162A
n = input()
print("Yes" if n.count("7")>0 else "No")

Submission status: Accepted

Solution code:
n = input()
res = "No"
for i in range(3):
  if n[i] == "7":
    res = "Yes"
print(res)

Submission status: Accepted

Solution code:
num = input()

ans = 0

for i in range(len(num)):
    if num[i] == "7":
        ans += 1

if ans == 0:
    print("No")

else:
    print("Yes")

Submission status: Accepted

Solution code:

def main():
    n = input()
    if n[0] == '7':
        print("Yes")
        return
    if n[1] == '7':
        print("Yes")
        return
    if n[2] == '7':
        print("Yes")
        return
    print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n=str(input())
a=0
for i in range(len(n)):
    if int(n[i])==7:
        a=1
        break
if a==1:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = input()

flag = False
for i in range(len(N)):
  if N[i] =="7":
    flag =True
if flag:
  print ("Yes")
else :
  print ("No")

Submission status: Accepted

Solution code:
import sys
import numpy as np
from math import ceil as C, floor as F, sqrt
from collections import defaultdict as D, Counter as CNT
from functools import reduce as R
import heapq as HQ

class Heap:
  def __init__(self, data, reverse=False):
    self.reverse = -1 if reverse else 1
    self.data = [self.reverse * d for d in data]
    HQ.heapify(self.data)
  def push(self, x): return HQ.heappush(self.data, self.reverse * x)
  def pop(self): return self.reverse * HQ.heappop(self.data)

ALP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
alp = 'abcdefghijklmnopqrstuvwxyz'
def _X(): return sys.stdin.readline().rstrip().split(' ')
def _S(ss): return tuple(ss) if len(ss) > 1 else ss[0]
def S(): return _S(_X())
def Ss(): return list(S())
def _I(ss): return tuple([int(s) for s in ss]) if isinstance(ss, tuple) else int(ss)
def I(): return _I(S())
def _Is(ss): return list(ss) if isinstance(ss, tuple) else [ss]
def Is(): return _Is(I())

n = I()
if n//100 == 7 or (n//10) % 10 == 7 or n % 10 == 7:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
import sys
import os
from operator import mul

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


N = list(_S())
ans = 'No'

for s in N:
    if s == '7':
        ans = 'Yes'
        break

print(ans)

Submission status: Accepted

Solution code:
N = input()
if N[0]=="7" or N[1]=="7" or N[2]=="7":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
if "7" in n:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
A=list(map(int,input()))
b=0

for i in range(0,3):
    if A[i]==7:
        b+=1

if b==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
N = input()
ans = 'Yes' if '7' in N else 'No'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
def main():
    N = input()
    print('Yes' if '7' in N else 'No')
    

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = str(input())
flag = 0
for i in range(3):
  if n[i] == '7':
    flag = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
for ni in n:
  if ni == '7':
    print('Yes')
    exit()
print('No')

Submission status: Accepted

Solution code:
n = input()
if "7" in n:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
N = input()
check = False
for i in range(3):
  if N[i] == "7":
    check = True
    
print("Yes" if check else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

while n > 0:
    mod = n % 10
    if mod == 7:
        print('Yes')
        exit(0)
    n = n // 10

print('No')

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = input()
if N.find('7') > -1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N =input()
for i in N:
        if i =='7':
                print('Yes')
                exit()
print('No')

Submission status: Accepted

Solution code:
N = str(input())
for i in range(3):
  if N[i] == '7':
    print('Yes')
    quit()
print('No')

Submission status: Accepted

Solution code:
N = list(input())
for i in N:
  if i == "7":
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
a,b,c = input()

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

Submission status: Accepted

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

def main():

    n = str(input())
    for i in range(len(n)):
        if n[i] == '7':
            print('Yes')
            sys.exit()
    print('No')


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

if n[0] == '7' or n[1] == '7' or n[2] == '7':
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=input()
x=N.count("7")
print("Yes" if x>0
      else "No")

Submission status: Accepted

Solution code:
N = input()
 
# 3桁なので全て確かめればよい
if N[0] == '7' or N[1] == '7' or N[2] == '7': print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
N = list(input())

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

Submission status: Accepted

Solution code:
import math
from math import gcd,pi,sqrt
INF = float("inf")

import sys
sys.setrecursionlimit(10**6)
import itertools
from collections import Counter,deque
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 main():
    n = i_input()
    n = str(n)
    if "7" in n:
        print("Yes")
    else:
        print("No")




if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
n = input()

for e in n:
    if e == '7':
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()
for i in n:
  if i == "7":
    print("Yes")
    quit()
print("No")

Submission status: Accepted

Solution code:
#A
N = list(input())
if any([int(i) ==7 for i in N]):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=input()
if "7" in n:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
if N[0] == "7" or N[1] == "7" or N[2] == "7":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
o = ['No','Yes']
f = 0
N = input()
s = str(N)
for c in s:
    t    = int(c)
    if t == 7:
        f = 1
print(o[f])

Submission status: Accepted

Solution code:
N=input()
if '7' in N:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=list(map(int,input()))
if 7 in n:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = input()
if N.count("7") > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
    N = input()

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n=list(input())
if n.count("7")!=0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = str(input())

if n[0] == '7' or n[1] == '7' or n[2] == '7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s=input()
if "7"  in s:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
print("Yes" if N.count("7") else "No")

Submission status: Accepted

Solution code:
def resolve():
    print("Yes" if "7" in input() else "No")

if '__main__' == __name__:
    resolve()

Submission status: Accepted

Solution code:
N = input()
O = 'Yes' if '7' in N else 'No'
print(O)

Submission status: Accepted

Solution code:
N = input ()
if N.count ('7') != 0:
  print ('Yes')
else:
  print ('No')

Submission status: Accepted

Solution code:
N = int(input())
tmp = 0
for i in range(3):
    amari = N%10
    N //= 10
    if amari == 7:
        print('Yes')
        tmp = 1
        break
if tmp != 1:
    print('No')

Submission status: Accepted

Solution code:
a=0
N=input()
l=len(N)
for i in range(l):
    if N[i]=='7':
        a=1
        break
if a==0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a=input()
if a[0]=="7" or a[1]=="7" or a[2]=="7":
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
int = int(input())
i=1
while i<=3:
  dev=int % 10
  if dev == 7:
    print("Yes")
    i=5
  int = int // 10
  i += 1
  if i==4:
    print("No")

Submission status: Accepted

Solution code:
n = input()
print('Yes') if '7' in n else print('No')

Submission status: Accepted

Solution code:
N = list(input())

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

Submission status: Accepted

Solution 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")

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
print("Yes" if input().count("7") > 0 else "No")

Submission status: Accepted

Solution code:
n = input()
if (n[0] == "7" or n[1] == "7" or n[2] == "7"):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
x=list(input())
print('Yes' if '7' in x else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    n = input()
    if n[0] == '7' or n[1] == '7' or n[2] == '7':
        print('Yes')
    else:
        print('No')
resolve()

Submission status: Accepted

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