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: Wrong Answer

Solution code:
s = int(input())
if s%10 == 7:
    print("Yes")
elif int(s%10)%10 == 7:
    print("Yes")
elif int(int(s%10)%10)%10 == 7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
N1=N//100
N2=(N//10)%10
N3=N%10
if N1==7 or N2==7 or N3==7:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
num = int(input())
ans = "No"
for i in range(3):
  reminder = num % 10
  if(reminder==7):
    ans = "Yes"
  num = num/10
  
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

N = int(input())

if 700 <= N < 800:
  print('Yes')
elif 70 <= N%10 < 80:
  print('Yes')
elif N == 7:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a = int(input())
for  _ in range(3):
	if a % 10 == 7:
		print("Yes")
		break
	a /= 10
else:
	print("No")
#return

Submission status: Wrong Answer

Solution code:
s = input()


if(s.find("7")== -1):
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
s = input()

print(s.find("7"))
if(s.find("7")== -1):
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
n = input()
s = "115"
print(s.find("7"))
if(s.find("7")== -1):
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
N = int(input())
if N // 100 == 7 or N // 10 == 7 or N % 10 == 7:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input()
if n/100==7 or n%10==7 or n/10==7:
  print "Yes"
else:
  print "No"

Submission status: Wrong Answer

Solution code:
n=input()
if n%7==0 or n%10==7 or n/10==7:
  print "Yes"
else:
  print "No"

Submission status: Wrong Answer

Solution code:
import math

k = int(input())
sum = 0

for i in range(1, k + 1):
    for j in range(1, k + 1):
        sum1 = math.gcd(i , j)
        for l in range(1, k + 1):
            sum += math.gcd(sum1, l)
print(sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from functools import reduce
import math

num = int(input())
a = 1
sum = 0

def gcd(*numbers):
  return reduce(math.gcd, numbers)

def loopC(a, b, num):
  c = 1
  sum = 0
  while c <= num:
      ans = gcd(a, b, c)
      # print(a, b, c, ans)
      sum += ans
      c += 1
  return sum

def loopB(a, num):
  b = 1
  sum = 0
  while b <= num:
    ans = loopC(a, b, num)
    b += 1
    sum += ans
  return sum

while a <= num:
  ans = loopB(a, num)
  sum += ans
  a += 1

print(sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def a(N):
    return 'Yes' if 7 in N else 'No'

Submission status: Wrong Answer

Solution code:
print(['Yes', 'No']['7' in input()])

Submission status: Wrong Answer

Solution code:
import sys

def lucky_seven(num_string):
  for num in line:
    if num == '7':
      return 'YES'
  return 'NO'

for line in sys.stdin:
  out = lucky_seven(line)
  sys.stdout.write(out)

Submission status: Wrong Answer

Solution code:
import sys

def lucky_seven(num_string):
  for num in line:
    if num == '7':
      return 'YES'
  return 'NO'

for line in sys.stdin:
  lucky_seven(line)

Submission status: Wrong Answer

Solution code:
def a(N):
  return 'Yes' if 7 in N else 'No'

Submission status: Wrong Answer

Solution code:
def func(N):
  return 'Yes'if 7 in N else 'No'

Submission status: Wrong Answer

Solution code:
def a(N):
  return Yes if 7 in N else No

Submission status: Wrong Answer

Solution code:
def func (x):
  return Yes if 7 in x else No

Submission status: Wrong Answer

Solution code:
def func(x):
  return yes if 7 in x else no

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = str(input())
if '7' in n:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
n = input()
if "7" in n:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
string=input()
if "7" in string:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
string=input()
if "7" in string:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
string=input()
t=False
for i in range (3):
  if string[i]=="7":
    t=True
if t==True:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
N=input()
a=int(N)//100
b=(int(N)-a*100)//10
c=int(N)-100*a-10*b
A=(a==7)
B=(b==7)
C=(c==7)
print(a)
print(b)
print(c)
if A==True or B==True or C==True:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
k = 1
while(n != 0):
  m = n % 10
  n /= 10
  if(m == 7):
    k = 2
    break
if k == 2:
  print('Yes')
else: 
  print('No')

Submission status: Wrong Answer

Solution code:
isSeven = 0
n = input()
print(len(n))
if (len(n)!=3):
  print("No")
  quit()
for i in n:
  i = int(i)
  if (i==7):
    isSeven = 1
if (isSeven!=0):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = int(input())
if s/100==7:
    print("Yes")
elif s/10==7:
    print("Yes")
elif s%100==7:
    print("Yes")
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = int(input())
if s/100==7:
    print("Yes")
elif s/10==7:
    print("Yes")
elif s%100==7:
    print("Yes")
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n=int(input())
while n>0:
    if n%10==7:
        print("Yes")
        exit()
    n=n//10
print("NO")

Submission status: Wrong Answer

Solution code:
a = input()
if a.count("7")>0:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
N = input()

s = str(N)
if s.count("7")>0:
	print(True)
else:
	print(False)

Submission status: Wrong Answer

Solution code:
s = str(input())
if s.count("7")>0:
	print(True)
else:
	print(False)

Submission status: Wrong Answer

Solution code:
N = 123

s = str(N)
if s.count("7")>0:
	print(True)
else:
	print(False)

Submission status: Wrong Answer

Solution code:
s = input()
print("YES" if '7' in s else "NO")

Submission status: Wrong Answer

Solution code:
import sys

n = int(input())

n_1 = n % 10
if n_1 == 7:
    print("Yes")
    sys.exit()
    
m = n // 10
n_10 = m % 100
if n_10 / 10 == 7:
    print("Yes")
    sys.exit()

n_100 = n // 100
if n_100 / 100 == 7:
    print("Yes")
    sys.exit()

print("No")

Submission status: Wrong Answer

Solution code:
print('7' in input())

Submission status: Wrong Answer

Solution code:
n = input()
l = []
for _ in range(len(n)):
    x = int(n)%10
    n = int(n)//10
    if x ==7:
        print("YES")
        break
else:print("No")

Submission status: Wrong Answer

Solution code:
print('Yes' if all([i == '7' for i in input()]) else 'No')

Submission status: Wrong Answer

Solution code:
string=input()
t=False
for i in range (len(string)):
  if string[i]=="7":
    t=True
if t==True:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
string=input()
t=False
for i in range (len(string)):
  if string[i]==7:
    t=True
if t==True:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n = int(input())    #3桁の整数を入力

for i in range(2):
    tmp = n % 10
    if tmp == 7:
        print('Yes')
        break
    if i == 1:
        print('No')
    n = n / 10

Submission status: Wrong Answer

Solution code:
n = int(input())    #3桁の整数を入力

for i in range(3):
    tmp = n % 10
    if tmp == 7:
        print('Yes')
        break
    if i == 2:
        print('No')
    n = n / 10

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input("数値を入力してください"))
third = a // 100
second = a // 10 - third * 10
first = a - (third *100 +second*10)
if(third == 7 or second == 7 or first == 7):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = list(map(int, input()))

if 7 in N:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())
digit = len(str(N))
for i in range(digit):
    if N % 10 == 7:
        print('Yes')
        exit()
    N = N / 10

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=(int, input())
print(A)

Submission status: Wrong Answer

Solution code:
n = int(input())

a = n//100
b = (n%100)//10
c = n%10
#print(a,b,c)
if(a==7)or(b==7)or(c==7):
	print("yes")
else :
	print("no")

Submission status: Wrong Answer

Solution code:
n = input()
print("7" in n)

Submission status: Wrong Answer

Solution code:
k = 0
n = int(input())
for i in range(n+1):
  if i % 3 != 0 and i % 5 != 0:
    k += i
 
print(k)

Submission status: Wrong Answer

Solution code:
N = int(input())

a = N//100
b = (N - a*100)//10
c = N - a*100 -b*10

if a==7 or b==7 or c==7:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
N = input()
  
pos = N.find('7')

if pos > 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = map(int,input().split())
strN = str(N)

if strN.count("7") > 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N=list(map(str,input().split()))
c="No"
for i in N:
  if i=="7":
    c="Yes"
print(c)

Submission status: Wrong Answer

Solution code:
print("NYOE S"['7' in input()::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("7" in input())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
xs = input().split(" ")

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

Submission status: Wrong Answer

Solution code:
s=input()
for e in s:
  if e=="7":
    print("YES")
    break
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n=input()
n=int(n)
og=n
flag=0
while(n>0):
    d=n%10
    n=n/10
    if(d==7):
        flag=flag+1
        
if(flag>0):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
if a % 10 == 7 or a // 10 % 10 == 7 or a // 100 % 10 == 7:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
if a % 10 == 7 or a // 10 % 10 == 7 or a // 100 % 10 == 7:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
import math
ans=0
i = int(input())
for a in range(1,i+1):
  for b in range(1,i+1):
    for c in range(1,i+1):
      n=math.gcd(math.gcd(a,b),c)
      ans+=n
print(ans)

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
a = s.count(7)
if a == 0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
n=input()
n=int(n)
if(n%10==7):
  print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = int(input())
b=0
for i in range(1,a+1):
  if i%3 != 0 and i%5 != 0 :
    b+=i
print(b)

Submission status: Wrong Answer

Solution code:
N = map(int, list(input()))
if 7 in N:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
num = int(input('')) #input()で入力を受け取ってint()で数字型に変換します。

num_100 = num / 100

num_10 = (num % 100) / 10

num_1 = (num % 10)

if num_100 == 7:
    print("Yes")
elif num_10 == 7:
    print("Yes")
elif num_1 == 7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = input()
"Yes" if(a=='7' or b=='7' or c=='7') else "No"

Submission status: Wrong Answer

Solution code:
a,b,c = input()
'Yes' if(a=='7' or b=='7' or c=='7') else 'No'

Submission status: Wrong Answer

Solution code:
a, b, c = input()
'Yes' if(a=='7' or b=='7' or c=='7') else 'No'

Submission status: Wrong Answer

Solution code:
a, b, c = input()
'Yes' if(a==7 or b==7 or c==7) else 'No'

Submission status: Wrong Answer

Solution code:
n = int(input())

n1 = n//100
n2 = (n-n1*100)//10
n3 = n%10

if n1*n2*n3%7 == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import fractions

K = int(input())
g = 0
for i in range(1, K+1):
    for j in range(1, i+1):
        for k in range(1, j+1):
            a = fractions.gcd(i, j)
            b = fractions.gcd(a, k)
            if i != j != k:
                g += b*6
            elif i == j == k:
                g += b
            else:
                g += b*3


print(g)

Submission status: Wrong Answer

Solution code:
r=int(input())
c=0
if r>699 and r<800:
    c+=1
r=r%100
if r>69 and r<80:
    c+=1
r=r%100
if r==7:
    c+=1


if c>0:
    print("Yes")
if c==0:
    print("No")

Submission status: Wrong Answer

Solution code:
z = map(int, list(str(input())))
print(True if 7 in z else False)

Submission status: Wrong Answer

Solution code:
n = str(input())
for i in n:
  if (i == 7):
    print("Yes")
    i = True;
    break
if (i!=True):
	print("No")

Submission status: Wrong Answer

Solution code:
K = int(input())
total = 0

def gdc(x,y):
  if x%y==0:
    return y
  return gdc(y, x%y)

for a in range(K):
  for b in range(K):
    for c in range(K):
      total += gdc(c+1, gdc(b+1, a+1))
print(total)

Submission status: Wrong Answer

Solution code:
N = input()

for s in N:
  if s == '7':
    print('Yes')
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
 
k = int(input())
 
total = 0
for a in range(1,k+1):
    for b in range(1,k+1):
        for c in range(1,k+1):
            total += math.gcd(math.gcd(a,b),c)
 
print(total)

Submission status: Wrong Answer

Solution code:
a=int(input())
s=str(a)
l=list(s)
y="7"
if y in l==1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
A=N//100
B=N//10
C=N-(A*100)-(B*100)
if A==7 or B==7 or C==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = input()
print(n)

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

Submission status: Wrong Answer

Solution code:
N = int(input())
N = str(N)
list_N = list(N)
list_N = [int(s) for s in list_N]
print(list_N)

if(list_N[0] != 7 and list_N[1] != 7 and list_N[2] != 7):
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
N = int(input())
N = str(N)
list_N = list(N)
list_N = [int(s) for s in list_N]
print(list_N)

if(list_N[0] != 7 and list_N[1] != 7 and list_N[2] != 7):
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
N = 127
N = str(N)
list_N = list(N)
list_N = [int(s) for s in list_N]
print(list_N)

if(list_N[0] != 7 and list_N[1] != 7 and list_N[2] != 7):
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

K = int(input())
ans = 0

for i in range(K):
    for j in range(K):
        for k in range(K):
            ans += math.gcd(math.gcd(i+1, j+1), k+1)

print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%10==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input(""))
if N in range(100, 999):
    if "7" in str(N):
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
def gcd(a, b):
    if a % b == 0:
        return b
    return gcd(b, a % b)


k = int(input())

sum = 0

# gcd(a,a,a)
sum += int((1+k)*k/2)

# gcd(a,b,b)
if k >= 2:
    for i in range(1, k):
        for j in range(i+1, k+1):
            sum += gcd(i, j)*6

# gcd(a,b,c)
if k >= 3:
    for i in range(1, k-1):
        for j in range(i+1, k):
            for l in range(j+1, k+1):
                sum += gcd(gcd(i, j), l)*6

print(sum)

Submission status: Wrong Answer

Solution code:
N = input()
length_N = len(N)
count = 0

for i in range(length_N):
    if N[i] == '7':
        print('yes')
        count += 1
        break
    
if count == 0:
    print('no')

Submission status: Wrong Answer

Solution code:
x=input()
y="No"
for y in x:
  if y=="7":
    y="Yes"
print(y)

Submission status: Wrong Answer

Solution code:
x=input()
for y in x:
  if y=="7":
    print("Yes")
print("No")

Submission status: Wrong Answer

Solution code:
import math
from functools import reduce
def gcd(x):
    return reduce(math.gcd, x)


a = int(input())
l = []
for i in range(1, a+1):
    for j in range(1, a+1):
        for k in range(1, a+1):
            l.append(gcd([i, j, k]))
print(sum(l))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
  n = input()
  if '7' in n:
  	print('yes')
  else:
  	print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%100 == 7:
  print('Yes')
elif (n//10)%10 == 7:
  print('Yes')
elif n//100 == 7:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = input()
flag = 0
for i in N:
    if i == '7':
        flag = 1
        print('yes')
        break
if flag == 0:
    print('no')

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
ans = 0
for a in range(K):
  for b in range(K):
    for c in range(K):
      ans += math.gcd(a+1, math.gcd(b+1, c+1))
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
n = str(n)

for i in n:
  if i =='7':
    print('YES')
  else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n=int(input()) 
res="No" 
for i in range(3):
  if n%7==0:
    res="Yes"
  n//=10
print (res)

Submission status: Wrong Answer

Solution code:
n=input()
if "7" in n :
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
S = 0
for a in range(1,K+1):
    for b in range(1,K+1):
        for c in range(1,K+1):
            S += math.gcd(math.gcd(a,b),c)
print(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = str(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())
N_1=int(N/100)
N_2=int((N - 100*N_1)/10)
N_3=int((N-100*N_1-10*N_2))
        

if N_1==7 or N_2==7 or N_3==7:
    print("yes")
else:
    print('no')

Submission status: Wrong Answer

Solution code:
N=int(input())
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

Lucky(N).Lucky_7()

Submission status: Wrong Answer

Solution code:
N=int()
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

Lucky(N).Lucky_7()

Submission status: Wrong Answer

Solution code:
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        #print(self.N_1)
        #print(self.N_2)
        #print(self.N_3)
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

N=int()
Lucky(N).Lucky_7()

Submission status: Wrong Answer

Solution code:
N=int()
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        #print(self.N_1)
        #print(self.N_2)
        #print(self.N_3)
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

Submission status: Wrong Answer

Solution code:
class Lucky:
    def __init__(self,N):
        self.N=N
        self.N_1=int(N/100)
        self.N_2=int((N - 100*self.N_1)/10)
        self.N_3=int((N-100*self.N_1-10*self.N_2))
        
    def Lucky_7(self):
        #print(self.N_1)
        #print(self.N_2)
        #print(self.N_3)
        if self.N_1==7 or self.N_2==7 or self.N_3==7:
            return print("yes")
        else:
            return print('no')

Submission status: Wrong Answer

Solution code:
def main():
    N = input()
    flag = False
    for i in N:
        if int(i) % 7 == 0:
            flag = True
    if flag:print("Yes")
    else:print("No")

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    flag = False
    for _ in range(3):
        N = N // 10
        if N % 7 == 0:
            flag = True
    if flag:print("Yes")
    else:print("No")

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
from sys import stdin


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    N = _in[0] # type:str
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    TF = True if '7' in N else False
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(TF)

Submission status: Wrong Answer

Solution code:
from math import gcd

def gcdx(x,y,z):
    return gcd(gcd(x,y),z)
n = int(input())
a = 0
longp = []

for i in range(1,n+1):
    for j in range(1,n+1):
        for p in range(1,n+1):
            a += gcdx(i,j,p)
           
print(a)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%10 == 7 or (n/10)%10==7 or (n/100)%10==7:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
print(input())

Submission status: Wrong Answer

Solution code:
N = int(input())
m = 0
for i in range(N+1):
  if not i % 3 == 0 or i % 5 == 0:
    m += i
 
print (m)

Submission status: Wrong Answer

Solution code:
input_string = input()
yes = 0
for n in input_string:
  if n == '7':
    print('Yes')
    yes = 1
    break
if yes:
  print('No')

Submission status: Wrong Answer

Solution code:
input_string = input()
for n in input_string:
  if n == '7':
    print('Yes')
    break

Submission status: Wrong Answer

Solution code:
line = str(input())
print(line in "7")

Submission status: Wrong Answer

Solution code:
N = input()



if N[0]=='7':
	print ('Yes')
elif N[1]=='7':
	print ('Yes')
elif N[2]=='7':
	print ('Yes')
else:
  	print ('NO')

Submission status: Wrong Answer

Solution code:
N = int(input())


A = int(N / 100)
B = int((N-(A*100))/10)
C = int(N - A*100 - B *10)

if A==7:
	print ('Yes')
elif B==7:
	print ('Yes')
elif C==7:
	print ('Yes')
else:
  	print ('NO')

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = 0

def gcd(a,b):
    if a % b == 0:
      return b
    return gcd(b, a%b)

for i in range(1, n+1):
    for j in range(1, n+1):
        x = gcd(i, j)
        for k in range(1, n+1):
            ans += gcd(x, k)
print(ans)

Submission status: Wrong Answer

Solution code:
a = input()

for i in a:
  if a == "7":
    print("Yes")
    break

Submission status: Wrong Answer

Solution code:
n=int(input())
sum=0
for i in range(1,n+1):
  if (i+1)%3!=0 and (i+1)%5 !=0:
    sum+=i
print(sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()


for letter in n:
  if letter == '7':
    result = "Yes"
  else:
      result = 'No'
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

n = input()


for letter in n:
    if letter == '7':
        result = "Yes"
    else:
        result = 'No'
print(result)

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    print(line)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import gcd

k = int(input())
ans = 0

for i in range(k):
    for j in range(k):
        for ii in range(k):
            ans += gcd(i+1,gcd(j+1,ii+1))

print(ans)

Submission status: Wrong Answer

Solution code:
s = 0
k = int(input())

def gcd(p,q):
    if p%q == 0:
        return q
    return gcd(q, p%q)
    
for a in range(1,k+1):
    for b in range(1,k+1):
        for c in range(1,k+1):
            s += gcd(gcd(a,b),c)
            
print(s)

Submission status: Wrong Answer

Solution code:
i = int(input())
fizz=[]
for x in range(i):
  if x % 3 ==0 and x%5==0:
    continue
  elif x % 3==0:
    continue
  elif x%5==0:
    continue 
  else:
    fizz.append(x)
print(sum(fizz))

Submission status: Wrong Answer

Solution code:
import math

K=int(input())
ans=0

for i in range(1,K+1):
    for j in range(1,K+1):
        for k in range(1,K+1):
            ans += math.gcd(i,math.gcd(k,j))
print(ans)

Submission status: Wrong Answer

Solution code:
s = input()
if s.count('7') > 0:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
s=input()
if "7" in s:
   print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
#%%
N = int(input())

for i in range(3):
    if (N >> i) % 10 == 7:
        print("Yes")
        break
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = int(input())
sum = 0
for i in range(1,s+1):
    if i%3 == 0 and i%5 == 0:
        j=0
    elif i%3==0 or i%5==0:
        j=0
    else:
      
        sum += i
print(sum)

Submission status: Wrong Answer

Solution code:
import itertools
import math

k = int(input())
klis = list(range(1,k+1))
lis = list(itertools.product(klis, klis, klis))

def gcd2(x):
    return math.gcd(x[0],math.gcd(x[1],x[2]))

result = sum(list(map(gcd2, lis)))
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import gcd


def solve():

    K = int(input())

    rangeK = range(1, K+1)
    ans = 0

    for a in rangeK:
        for b in rangeK:
            for c in rangeK:
                ans += gcd(gcd(a, b), c)

    print(ans)


if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

Solution code:
n=input()
if int(n[-1])==7 or int(n[-2])==7 or int(n[-3])==7:
    print("Yes")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a = input()
a = a.split('7')
if(len(a)==2):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if '7' in s:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def fizz(k,count):
    if k ==0:
        return 0
    else:
        for n in range(k+1):
            if n%3==0 and n%5==0:
                continue
            elif n%3==0 and n%5!=0:
                continue
            elif n%5==0 and n%3!=0:
                continue
            else:
                count += n

    return count

n = int(input())
print(fizz(n,0))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

bool_ = 0
while N > 0:
    if N % 10 == 7:
        print('Yes')
        bool_ = 1
        break
    N /= 10

if bool_ != 1:
    print('No')

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())

while N > 0:
    if N % 10 == 7:
        print('Yes')
        sys.exit()
    N /= 10
print('No')

Submission status: Wrong Answer

Solution code:
n = input()

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

Submission status: Wrong Answer

Solution code:
s = int(input())#入力した数値
t = int(s % 10)#10で割ったあまり＝n桁目の数
u = int(s / 10)#10で割ったもの
while True:
    t = int(u % 10)
    u = int(u / 10)
    if t == 7:
        print("Yes")
        break
    elif u == 0:
        print("No")
        break

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
C=0
 
for l in range(N):
    for n in range(N):
        for m in range(N):
            if l==0 or m==0 or n==0:
                C+=1
            else:
                C+=math.gcd(math.gcd(l+1,m+1),n+1)
 
print(C)

Submission status: Wrong Answer

Solution code:
N=input()
n=int(N)
S=0
for i in range(n):
    if (i%3 != 0)and(i% 5 != 0):
      S+=i
print(S)

Submission status: Wrong Answer

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