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: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
printV = lambda x: print(*x, sep="\n")
printH = lambda x: print(" ".join(map(str,x)))
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

def main():
	n = II()
	ch = False
	for nn in str(n):
		if(nn=='7'):
			ch=True
	if ch:
		print("Yes")
	else:
		print("No")

if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

def main():
     n = input()

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# import sys
# import math #sqrt,gcd
# import decimal
# import queue # queue
# import bisect
# import heapq # priolity-queue
# import time
# from itertools import permutations #順列生成
# import collections # deque
# from operator import itemgetter
# from fractions import Fraction

mod = int(1e9+7)
INF = 1<<29
lINF = 1<<35

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

def main():
    n = input()
    for i in range(3):
        if n[i]=='7':
            print("Yes")
            return
    print("No")
    return

if __name__=='__main__':
    main()

Submission status: Accepted

Solution code:
S = input()
ans = "No"
for char in S:
    if char == "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 (N[0] == "7") | (N[1] == "7") | (N[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:
# coding: utf-8
N = input()
if '7' in N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    #N,K,C=map(int,input().split())
    #A=list(map(int,input().split()))
    S=input()
    if "7" in S:
        print("Yes")
    else:
        print("No")
    

main()

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

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

Submission status: Accepted

Solution code:
num = input()
for n in num:
    if n == '7':
        print('Yes')
        exit()
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:
def resolve():
    N = input()
    return print("Yes" if N.count("7") > 0 else "No" )

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
from sys import stdin

def main():

    input = stdin.readline

    X = input()

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

    
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
for s in S:
  if s=='7':
    print('Yes')
    exit(0)
print('No')

Submission status: Accepted

Solution code:
from sys import stdin
N = (stdin.readline().rstrip())
if "7" in list(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 '7' in N:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
ans = "No"
for s in N:
    if s == "7":
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

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

def linput():
    return [int(x) for x in input().split()]

n = input().rstrip()

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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from functools import reduce
from fractions import gcd
import math
import bisect
import itertools
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
INF = float("inf")


def main():
    N = input()[:-1]
    if "7" in N:
        print("Yes")
    else:
        print("No")
        


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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 main():
    n = list(input())
    if "7" in n:
        ans = "Yes"
    else:
        ans = "No"

    print(ans)
    #a,b = map(int, input().split())

    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def _in():
    return [int(x) for x in input().split(' ')]


if __name__ == '__main__':
    #for t in range(int(input())):
    s=input()
    print("Yes" if "7" in s else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# n = int(input())
s = input()
# n,m = map(int, input().split())
# x = list(map(int, input().split))

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin
inf = 1 << 60
mod = 1000000007

ni      = lambda: int(ns())
nin     = lambda y: [ni() for _ in range(y)]
na      = lambda: list(map(int, stdin.readline().split()))
nan     = lambda y: [na() for _ in range(y)]
nf      = lambda: float(ns())
nfn     = lambda y: [nf() for _ in range(y)]
nfa     = lambda: list(map(float, stdin.readline().split()))
nfan    = lambda y: [nfa() for _ in range(y)]
ns      = lambda: stdin.readline().rstrip()
nsn     = lambda y: [ns() for _ in range(y)]
ncl     = lambda y: [list(ns()) for _ in range(y)]
nas     = lambda: stdin.readline().split()

n = ns()

flag = False
for i in range(3):
    if n[i] == '7':
        flag = True

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

if '7' in ns():
    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:
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)

N = list(str(int(input())))

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

Submission status: Accepted

Solution code:
def main():

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = input()

if n.count('7'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = input()
ret = "No"
if a.count("7") > 0:
    ret  ="Yes"
print(ret)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 5 + 10)
def input(): return sys.stdin.readline().strip()

def resolve():
    def main():
        n=str(input())
        for i in n:
            if int(i)==7:
                return 'Yes'
        return 'No'
    print(main())

resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input=sys.stdin.readline
n=int(input())
n=str(n)
if n[0]=='7' or n[1]=='7' or n[2]=='7':
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
t = 1
for _ in range(t):
    n=(input())
    if('7' in n):
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline

n = 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:
S = input().strip()
print('Yes' if '7' in S else 'No')

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
# print('input >>')
N = input()

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

# print('-----output-----')

Submission status: Accepted

Solution code:
n = int(input())
ans = 'No'
for i in str(n):
    if int(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()
cond = 0
for i in range(len(N)):
	if N[i] == '7':
		cond = 1
		break

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

Submission status: Accepted

Solution code:
a=input()
if '7' in a:
  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:
import collections, math

local = False
if local:
    file = open("input.txt", "r")

def inp():
    if local:
        return file.readline().rstrip()
    else:
        return input().rstrip()

def ints():
    return [int(_) for _ in inp().split()]


n = int(inp())

if "7" in str(n):
    print("Yes")
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 = input()
if "7" in N:    
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10 ** 7)

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

N = list(input())

ok = False
for i in range(3):
    if N[i] == '7':
        ok = True

if ok:
    print('Yes')
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:
import sys
n=list(input())
for i in range(3):
  if n[i]=='7':
    print('Yes')
    sys.exit()
print('No')

Submission status: Accepted

Solution code:
ls = list(input())

if '7' in ls:
    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:
a = input()
for aa in a:
    if aa == '7':
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()
res = False
for char in n:
    if char == "7":
        res = True
print("Yes" if res else "No")

Submission status: Accepted

Solution code:
a = input()

for ai in a:
    if ai == '7':
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
#!python3.4
# -*- coding: utf-8 -*-
# abc162/abc162_a
import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    N = i2s()
    if '7' in N:
        print('Yes')
    else:
        print('No')
    return

main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
n = int(input())

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

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 = input()
for digit in n:
  if digit == '7':
    print('Yes')
    break
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
flag = 0
for word in s:
    if word == "7":
        flag = 1
print("Yes" if flag else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
import math
import statistics
import collections

def solve():
    n = input()
    if n[0] == "7" or n[1] == "7" or n[2] == "7":
        print("Yes")
    else:
        print("No")
    return 0

if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import *

N = input()

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

Submission status: Accepted

Solution code:
N = input()
f = False
for i in N:
    if i == '7':
        f = True
if f:
    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:
a = input()
if '7' in a:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)
from math import floor,ceil,sqrt,factorial,log
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from operator import itemgetter
from fractions import gcd
mod = 10 ** 9 + 7
inf = float('inf')
ninf = -float('inf')
 
#整数input
def ii(): return int(sys.stdin.readline().rstrip()) #int(input())
def mii(): return map(int,sys.stdin.readline().rstrip().split())
def limii(): return list(mii()) #list(map(int,input().split()))
def lin(n:int): return [ii() for _ in range(n)]
def llint(n: int): return [limii() for _ in range(n)]
#文字列input
def ss(): return sys.stdin.readline().rstrip() #input()
def mss(): return sys.stdin.readline().rstrip().split()
def limss(): return list(mss()) #list(input().split())
def lst(n:int): return [ss() for _ in range(n)]
def llstr(n: int): return [limss() for _ in range(n)]

#本当に貪欲法か？ DP法では？？
#本当に貪欲法か？ DP法では？？
#本当に貪欲法か？ DP法では？？

n=list(ss())

if "7" in n:
    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:
n = input()
fl = "No"
for i in range(3):
    if n[i]=="7":
        fl = "Yes"
        
print(fl)

Submission status: Accepted

Solution code:
import collections
import sys
import numpy as np
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
INF = 10**10+5
MOD =10**9+7

#入力
n = input()
for i in range(len(n)):
    if n[i] == "7":
        print("Yes")
        sys.exit()
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:
#!/usr/bin/env python3
import sys
input = sys.stdin.readline

s = input().rstrip()
if "7" in s:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
N = input()
for i in range(3):
    if N[i] == '7':
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
#A
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
MOD = 10 ** 9 + 7
INF = 10 ** 10
import sys
sys.setrecursionlimit(100000000)
dy = (-1,0,1,0)
dx = (0,1,0,-1)

def main():
    n = input()
    if '7' in n:
        print('Yes')
    else:
        print('No')
if __name__ =='__main__':
    main()

Submission status: Accepted

Solution code:

import sys

N = list(input())
print("Yes") if("7" in N) 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 = list(input())
print('Yes' if '7' in N else '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())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n = input()
for ni in n:
  if ni == "7":
    print("Yes")
    exit()
print("No")

Submission status: Accepted

Solution code:
n = int(input())
a = False
for i in str(n):
    if i=='7':
        a = True

print('Yes' if a else 'No')

Submission status: Accepted

Solution code:
from math import gcd

from math import factorial as f

from math import ceil,floor,sqrt


import bisect
import re
import heapq


from copy import deepcopy
import itertools

from sys import exit

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

yes = "Yes"
no = "No"

def main():
    s = input()
    for i in s:
        if i == '7':
            print(yes)
            exit()
    print(no)


main()

Submission status: Accepted

Solution code:
def main():
    #from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #r = input()
    #n = int(input())
    #a, b = map(int, input().split())
    #s, y = input().split()
    #a = input().split()
    #a = list(map(int, input().split()))
    #a = [list(input().split()) for i in range(n)]
    #a = [int(input()) for i in range(n)]
    #a = [list(map(int, input().split())) for i in range(n)]
    #a = [int(s) - 1 for s in input().split()]
    #l=[int(input()) for _ in range(int(input()))]
    #res = 0
    n=list(input())
    if '7' in n:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = list(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:
def main():
    n = input()
    if '7' in n:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

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: Accepted

Solution code:
N = 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:
from collections import defaultdict, deque
import sys
import heapq
import bisect
import math
import itertools
import string
import queue
import copy
import time
# import numpy as np
from fractions import gcd

sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7

def inp(): return int(sys.stdin.readline())
 
def inp_list(): return list(map(int, sys.stdin.readline().split()))

def lcm(x, y): return (x * y) // gcd(x, y)

n = inp()
s = str(n)
for i in range(3):
    if s[i] == '7':
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
N = input().strip()

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

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
sys.setrecursionlimit(10 ** 7)

i_i = lambda: int(i_s())
i_l = lambda: list(map(int, stdin.readline().split()))
i_s = lambda: stdin.readline().rstrip()

N = i_s()

if '7'in N:
    print('Yes')
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 = input()

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

Submission status: Accepted

Solution code:
N=input()
for i in range(3):
    if N[i]=="7":
        print("Yes")
        exit()
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 = int(input())
if  "7" in str(n):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()

for c in S:
  if c == "7":
    print("Yes")
    exit()

print("No")

Submission status: Accepted

Solution code:
N = list(str(input()))

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

Submission status: Accepted

Solution code:
s = input()

for a in s:
    if a == '7':
        print("Yes")
        exit(0)
print("No")

Submission status: Accepted

Solution code:
N = input()

print("Yes" if N.count("7") >= 1 else "No")

Submission status: Accepted

Solution code:
s=input()
if "7" in s:
    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:
S = (input())
#N = int(input())
#N, M = map(int, input().split())
#A = list(map(lambda x: int(x)*(-1), input().split()))
#A = [int(input()) for i in range(N)]
#C = [list(map(int, input().split())) for i in range()]

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

Submission status: Accepted

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

import sys
from itertools import accumulate

def input(): return sys.stdin.readline().strip()
def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(N=None): return list(MAP()) if N is None else [INT() for i in range(N)]
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
sys.setrecursionlimit(10 ** 9)
INF = 10 ** 18
MOD = 10 ** 9 + 7

S = input()

if S.count('7'):
    Yes()
else:
    No()

Submission status: Accepted

Solution code:
N = 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:
a = str(input())
if '7' in a:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
print("YNeos"[input().count("7")<1::2])

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()

N = input()

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

Submission status: Accepted

Solution code:
import sys
import math
import fractions
from collections import deque
from collections import defaultdict
sys.setrecursionlimit(10**7)

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:

def main():
    s = input()
    if "7" in s:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

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 = input()
flag = False
for i in range(len(n)):
    if n[i] == '7':
        flag = True
        break
if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 12 20:58:47 2020

@author: Kanaru Sato
"""

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:
def solve():
    N = input()
    for i in N:
        if i == '7':
            print('Yes')
            return
    
    print('No')
if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import string
def num():
    return int(input())
def nums():
    return list(map(int,input().split()))


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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
import sys

n = input()

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

print('No')

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i for i2 in range(j)]
def dp3(ini, i, j, k): return [[[ini]*i for i2 in range(j)] for i3 in range(k)]
#import bisect #bisect.bisect_left(B, a)
#from collections import defaultdict #d = defaultdict(int) d[key] += value


S = input()

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

Submission status: Accepted

Solution code:
import sys

X = sys.stdin.readline().rstrip()

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
N = list(input())[: -1]
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().rstrip()

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

Submission status: Accepted

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

if __name__=='__main__':
    main()

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
flag = False
for c in n:
    if c == "7":
        flag = True

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

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
 
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = input()

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