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:
a=input()
if(list(a).count('7')>=0):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
N = input()
F = 0

for i in range(2):
    if N[i] == '7':
        F = F + 1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
x = 0
for i in range(3):
    if n[i] == "7":
        print("Yes")
        break
        x = -1

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

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
for d in str(N):
    if d == "7":
        print("yes")
        sys.exit()
print("no")

Submission status: Wrong Answer

Solution code:
# N, M = map(int, input().split())
# N = map(int, input().split())

N=470
# M=1
# A=[5,4,2,1]

cnt = 0
cnt1 = 0

# for i in range(N):
#     cnt = cnt + A[i]
#
# for i in range(N):
#     if A[i] / cnt > 1 / 4 / M:
#         cnt1 = cnt1 + 1

a1 = N % 10
a2 = ((N-a1*10) % 100)/10
a3 = ((N-a1*100-a2*10))/100

print(a1,a2,a3)

if a1 == 7 or a2 == 7 or a3 == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = str(input())

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

Submission status: Wrong Answer

Solution code:
import numpy as np
#N=map(int, input().split())
N=int(input())
a=N//100
b=(N-a*100)//10
c=N-a*100-b*10
if a%7!=0 and b%7!=0 and c%7!=0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int):
    print(YES if (N//100 == 7 or N//10 == 7 or N%10 == 7) else NO)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a_string = input()
a_list = a_string.split()
map_object = map(int, a_list)


list_of_integers = list(map_object)
ans = "No"
for i in range(0 , len(list_of_integers)):
  if list_of_integers[i] == "7":
    ans = "Yes"
    break
print(ans)

Submission status: Wrong Answer

Solution code:
def fizzbuzz(n):
    ans = 0
    for i in range(n):
        if (i+1)%3 != 0 and (i+1)%5 != 0:
            ans += i+1
            # print(i+1, ans)
    print(ans)

n = int(input())
fizzbuzz(n)

Submission status: Wrong Answer

Solution code:
x = False
N = str(input())
for i in N:
  if i == 7:
    x = True
if x == True:
  print("Yes")

Submission status: Wrong Answer

Solution code:
n = input()
k = 0
for i in range(len(n)):
    if int(n[i]) == 7:
        print("Yes")
        k = 1
if k != 1:
    print("No")

Submission status: Wrong Answer

Solution code:
n = input()

flag = "No"
for i in n :
    print(i)
    if int(i)==7:
        flag="Yes"
        break
    else:
        flag="No"
print (flag)

Submission status: Wrong Answer

Solution code:

a = input() 

print('7' in a)

Submission status: Wrong Answer

Solution code:
a = input()
b=list(a)
res= 0
for i in b:
    if i == '7':
        print("Yes")
        res = res+1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
flag = False
length = len(S)
for i in range(length):
  if S[i] == '7':
    flag == True
    break
print("Yes" if flag == True else "No")

Submission status: Wrong Answer

Solution code:
N = int(input())
x=N/100
y=N%100/10
z=N%100%10
if (7 in [x, y, z]):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

hund = num // int(100) 
num_tens = num % 100 
tens = num_tens // 10 
ones = num_tens % 10
print (hund)

if (hund == 7 or  tens ==7 or ones == 7):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())

A=  N//100
B = (N//10)%10
C = N%10

if (A==7) or (B==7) or (B==7):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = input()

flag = "NO"
for i in n :
    print(i)
    if int(i)==7:
        flag="YES"
        break
    else:
        flag="NO"
print (flag)

Submission status: Wrong Answer

Solution code:
N=int(input())
import sys
for i in range(3):
  if N%10==7:
    print ('Yes')
    sys.exit
  N=N//10
print ('No')

Submission status: Wrong Answer

Solution code:
S = input()

a = 0
for i in range(len(S)):
    if S[i] == "7":
        a = 1
    else:
        a = 0

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

Submission status: Wrong Answer

Solution code:
num=input()
flag=0
for i in range(3):
  if int(num[i])==7:
    flag=1
if flag==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
x = N
while x:
    if x % 10 == 7:
        print('Yes')
    x //= 10
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

ipt = str(input().split())
print(ipt)
if("7" in ipt):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=input()

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python

import sys

N = int(sys.stdin.readline())

mods = []

order = 100
for i in range(3):
    mods.append(N // order)
    N = N - (order * mods[-1])


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

Submission status: Wrong Answer

Solution code:
n = list(input())
j = 0
for i in n:
    j = 1
if j==1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
string=input()
if string[0]and string[1]and string[2] in "7":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
t=list(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())
count = 0
for n in range(N+1):
  if (n%5)*(n%3) != 0:
    count += n
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()

flag = False
for i in n :
    print(i)
    if int(i)==7:
        flag=True
        break
    else:
        flag=False
print (flag)

Submission status: Wrong Answer

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

print('No')

Submission status: Wrong Answer

Solution code:
n = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input()
x=0
for a in n:
  if(a=='7'):
    print("Yes")
    x=1
if(x!=1):
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
c=0
for x in n:
    if x=="7":
        print("Yes")
        c+=1
        break
    else:
        pass
if c!=3:
    print("No")

Submission status: Wrong Answer

Solution code:
a = input()
for i in range(len(a)):
    if int(a[i]) == 7:
        flag = 1
        break
    else:
        flag = 0
if flag == 1:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
n = input()
for i in range(3):
  if n[i] == '7':
    print('Yes')
if n[0] != n[1] != n[2] != '7':
  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:
N = int(input())
ans=0
for i in range(1,N+1):
    if(not(i%3==0 or i%5==0)):
        ans += i
print(ans)

Submission status: Wrong Answer

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

def main():
    N = input()
    if int(N[0]) % 7 == 0 or int(N[1]) % 7 == 0 or int(N[2]) % 7 == 0:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = []

for i in range(N):
    N_3 = i % 3
    N_5 = i % 5
    if N_3 != 0 and N_5 != 0:
        ans.append(i)

print(sum(ans))

Submission status: Wrong Answer

Solution code:
k = list(str(input()))
re = False
for i in range(len(k)):
  if i == '7':
    re = True
    
if re:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A = str(input())
i_count = 0
for i in A:
  if i == int(7):
    i_count = i_count+1

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

Submission status: Wrong Answer

Solution code:
a = int(input())
nums = [int(d) for d in str(a)]
count = 0
if nums[0] == 7:
  print("Yes")
elif nums[1] ==7:
  print("Yes")
elif nums[2]==7:
  print("Yes")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
judge = False

string = str(n)
for i in range(len(string)):
  if(string[i] == "7"):
    judge = True

if(judge):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
k=list(input())
if k[0]=="7" or k[1]=="7" or k[2]=="7":
    print("yes")

else:
    print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

N=str(N)

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:
l = list(input())

for i in range(3):
  if l[i] == "7":
    print("Yes")
    exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding:utf-8 
# 検索したい文字列 
N=input()
if N[0] or N[1] or N[2] ==7: 
    print('Yes') 
else: 
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

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

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

Submission status: Wrong Answer

Solution code:
raw_input = input().split()
for r in raw_input:
  if '7' == r:
    print('Yes')
    break
else:
  print('No')

Submission status: Wrong Answer

Solution code:
#A
N = input()
#print( N[-1])
N = str(N)

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(x) for x in input().split()]

X = str(N)

if "7" in X:
    print("True")
else:
    print("False")

Submission status: Wrong Answer

Solution code:
def main():
  s = input()
  print('7' in s)

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

Solution code:
n = map(int, input())
x = list(n)
print("YES" if 7 in x else "NO")

Submission status: Wrong Answer

Solution code:
N=input()

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

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=input()
if(n[0]=='7'or n[2]=='7'or[2]=='7'):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = str(input())

# print(N)

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

Submission status: Wrong Answer

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

yes = 0

for i in a:
  if i == 7:
    yes += 1
if yes > 0:
  print('Yes')

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = 0

for i in range(N):
    if (i % 15 == 0) or (i % 3 == 0) or (i % 5 == 0):
        continue
    else:
        ans += i


print(ans)

Submission status: Wrong Answer

Solution code:
s = input()
flg = False
for i in range(3):
    if int(s[i])%7 == 0:
        flg = True

if flg == True:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = input()

count = False
for i in range(len(a)):
    if i == "7":
        count = True
        break

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

Submission status: Wrong Answer

Solution code:
a = input()
x = int(a)//100
y = (int(a)-x*100)//10
z = int(a) - y*10 - x*100
print(x,y,z)
if x == 7 or y == 7 or z == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
a=n//100
b=(n-a*100)//10
c=n%100
ans="Yes"
if a!=7 and b!=7 and c!=7:
  ans="No"
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import numpy as np

n = str(input())

for i in range(3):
    if n[i] == str(7):
        print('YES')
        break
    else:
        if i == 2:
            print('NO')
        else:
            continue

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:
n = int(input())
k = 0
for i in range(n):
  if not ((i+1)%5)*((i+1)%3) == 0:
    k += i+1
print(k)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
f = 0
for i in range(len(n)):
	if n[i] == "7":
		f = 1
		print("YES")
		break
if f==0:
	print("NO")

Submission status: Wrong Answer

Solution code:
s=input()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#200412A
N = int(input())
flag = 0
if N%100 ==7:
    flag = 1
n=N//10
if n%10 ==7:
    flag =1
if N//100 ==7:
    flag = 1
if flag ==1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
a=0
for i in range(2):
    if N % 10 == 7:
        a=1
    N = N % 10
if a ==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
h = N % 100
t = (N - 100*h) % 10
o = N - 100*h - 10*t
if h == 7:
    print('Yes')
elif t == 7:
    print('Yes')
elif o == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

result = ""
while n > 0:
    if n % 10 == 7:
         result = 'YES'
         break
    else:
        n //= 10
if not result:
    result = 'NO'
print(result)

Submission status: Wrong Answer

Solution code:
n = int(input())
h = n // 100
d = (n-h)// 10
c = n % 10

if h == 7 or d ==7 or c ==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input()) 
if N%10 == 7:
    print("Yes")
else:
    if (N%100-N%10)/10 == 7:
        print("Yes")
    else:
        if (N-N%100-N%10)/100 == 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:
# -*- coding=utf_8 -*-
N = int(input())
l = [int(x) for x in list(str(N))]

if 7 in l:
    print("yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N=input()

flg=0
for i in range(len(N)):
    if N[i]=='7':
        flg=1
        exit(0)
if flg!=0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()
print (N[1])
s = [N[i] for i in range(len(N))]
sw = False
for i in range(len(s)):
    if s[i] == "7":
        sw = True

if sw == True:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
ans = 'No'
for i in range(3):
    n[i] == '7'
    ans = 'Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
a = input()
b=list(a)
res= 0
for i in b:
    if i == '7':
        print("yes")
        res = res+1

if res == 0:
    print("no")

Submission status: Wrong Answer

Solution code:
s = str(input())

n = len(s)
cnt = 0
for i in range(n):
    if s[i] == '7':
        print("Yes")
        cnt = 1
        break

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

Submission status: Wrong Answer

Solution code:
n=str(input())
flag=0
for i in range(3):
    if n[i]==7:
        flag=1
        break
if flag==0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:

S = input()
length = len(S)
for i in range(length):
  if S[i] == '7':
    print("Yes")
    break

Submission status: Wrong Answer

Solution code:
N=list(map(str,input()))
print("Yes" if int(N[0])*int(N[1])*int(N[2])%7==0 else "No")

Submission status: Wrong Answer

Solution code:
x = input().split()
j = 0
for i in x:
  if int(i) != 7:
    j = 1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()

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

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:
n = input()

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())
for i in range(3):
    if n%10 == 7:
        print('Yes')
        exit()
    else:
        n // 10
print('No')

Submission status: Wrong Answer

Solution code:
a = map(int, input().split())
a = int(list(a)[0])

ans = 'No'
while a > 99:
    if a % 10 == 7:
        ans = 'Yes'
        break
    a /= 10
    a = int(a)

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input().split()
n_1 = [int(i) for i in n]

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

Submission status: Wrong Answer

Solution code:
a=list(input())
x=0
for i in a:
    if i=="7":
        x=1
        print("Yes")
if x==0:
    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:
N = input()
for i in range(3):
    flag = False
    if N[i] == "7":
        flag = True
if flag == True:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:

def main():
    # -*- coding: utf-8 -*-
    # 整数の入力
    # a = int(input())
    # スペース区切りの整数の入力
    # b, c = map(int, input().split())
    # b, c = map(int, input())

    # # 文字列の入力
    a = input()
    # 出力
    # print("{} {}".format(a+b+c, s))

    # mul = a

    if '7' in a:
        print("YES")
    else:
        print("NO")


if __name__ == '__main__':
    # main('170')
    main()

Submission status: Wrong Answer

Solution code:
a = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = "117"
if s.find("7") != -1:
    print ("Yes")
else:
    print ("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
x = N
while x:
  if x % 10 == 7:
    print('Yes')
  x //= 10
print('No')

Submission status: Wrong Answer

Solution code:
n = input()
for i in range(3):
  if n[i] == '7':
    print('Yes')
if n[0] != n[1] != n[2]:
  print('No')

Submission status: Wrong Answer

Solution code:
N = input().strip()
print('7' in N)

Submission status: Wrong Answer

Solution code:

N = int(input())

s = str(N)

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

Submission status: Wrong Answer

Solution code:
N = input()

for n in N:
    if n == '7':
        ans = 'Yes'
    else:
        ans = 'No'

print(ans)

Submission status: Wrong Answer

Solution code:
N = list(map(int, input()))
cnt = 0
for i in N:
  if i=='7':
    cnt += 1
if cnt==0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
import math
import fractions

n = stdin.readline().rstrip()

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

Submission status: Wrong Answer

Solution code:
n = input()
b = 0
for i in n:
    if i == '7':
        b= 1
        break

if b == 1:
    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:
a=list(input())
if '7' in a:
  print('True')
else:
  print('False')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
import sys
from collections import Counter
from itertools import permutations, combinations
from fractions import gcd
from math import ceil, floor
sys.setrecursionlimit(10 ** 6)

def input():
    return sys.stdin.readline()[:-1]

def main():
    N = input()
    for l in N:
        if l == '7':
            print("Yes")
        else:
            "No"

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

    main()

Submission status: Wrong Answer

Solution code:
k = list(input())
re = False
for i in range(len(k)):
  if i == '7':
    re = True

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin, stdout
def main():
    n=stdin.readline().rstrip()
    if '7' in n:
        print('YES')
        return
    print('NO')
    return
main()

Submission status: Wrong Answer

Solution code:
import sys
import heapq, math
from itertools import zip_longest, permutations, combinations, combinations_with_replacement
from itertools import accumulate, dropwhile, takewhile, groupby
from functools import lru_cache
from copy import deepcopy

N = int(input())

if N % 10 == 7 or N // 10 % 10 == 7 or N // 10 % 10 == 7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline

N = input().split()

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
n = input() # 入力が1つ
# map(int, input().split()) # 入力が複数
# [int(i) for i in input().split()] # 配列で数字

if '7' in n:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#JMD
#Nagendra Jha-4096

 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
t=1
for tt in range(t):
    n=str(input())
    if '7' in n:
        print("YES")
    else:
        print("NO")
    #n,k,s= map(int, sys.stdin.readline().split(' '))
    #a=list(map(int,sys.stdin.readline().split(' ')))
    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Submission status: Wrong Answer

Solution code:
def main():
    s = input()
    for c in s:
        if c == '7':
            return 'Yes'
        return 'No'


if __name__ == '__main__':
    print(main())

Submission status: Wrong Answer

Solution code:
N = input()
print('YES') if N.count('7') 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 = input()
if n in "7":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
a=int(input())
b=0
while a>0 or b==0:
  if a%10==7:
    b=1
  a/=10
  
if b==1:
  print("Yes")
else:
  print("No")

Submission status: Time Limit Exceeded

Solution code:
import fractions
from functools import reduce

def gcd(numbers):
    return reduce(fractions.gcd, numbers)

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 += gcd([i,j,k])

print(ans)

Submission status: Time Limit Exceeded

Solution code:
tmp=[j for j in range(100)]
for i in range(int(1e15)):
    k=[j for j in range(i,i+100)]
    for p,l in enumerate(k):
        tmp[p]*=l

Submission status: Time Limit Exceeded

Solution code:
from fractions import gcd

k = int(input())
cnt = 0
for a in range(k):
    for b in range(k):
        for c in range(k):
            d = gcd(a+1,b+1)
            cnt = cnt + gcd(d,c+1)
print(cnt)

Submission status: Time Limit Exceeded

Solution code:
import math
import itertools
from numba import njit

@njit
def culc_gcd_of_3(l_p):
    answer = 0
    for x in l_p:
        temp = math.gcd(x[0], x[1])
        answer += math.gcd(x[2], temp)
    
    return answer


K = int(input())
l_p = list(itertools.product(range(1, K+1), range(1, K+1), range(1, K+1)))

culc_gcd_of_3(l_p)

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
f=0
c=0
while n>0:
  c=n%10
  if c==7:
    f=1
    print("Yes")
if f==0:
  print("No")

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
f=0
while n>0:
  c=n%10
  if c==7:
    f=1
    print("yes")
    n=n/10
if f==0:
  print("no")