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:
s = input().rstrip()

ans = 'No'
for c in s:
    if c == '7':
        ans = 'Yes'
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def check():
    N = input()
    for s in N:
        if s == '7':
            return 'Yes'
    return 'No'
  
print(check())

Submission status: Accepted

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

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
from sys import stdin
input = stdin.readline
N = input()

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

print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import sys

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

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
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:
#create date: 2020-04-12 21:00

import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

def main():
    s = ns()
    for si in s:
        if si == "7":
            print("Yes")
            quit()
    print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# ABC162_A
n=int(input())
s=str(n)
for ss in s:
    if ss=="7":
        print("Yes")
        exit(0)
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

flag=0

for i in range(0,3):
    if(n[i]=='7'):
        flag=1

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

Submission status: Accepted

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










if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())
cnt = 0
for i in n:
    if i == "7":
        cnt += 1
if cnt != 0:
    print("Yes")

else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = (input())
#a,b = map(int,input().split())
#L = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

answer="No"

for s in S:
    if s=="7":
        answer="Yes"
        break

print(answer)

Submission status: Accepted

Solution code:
s = list(input())
if '7' in s:
    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:

# input
N = list(input())

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

Submission status: Accepted

Solution code:
import math
import string
import collections
from collections import Counter
from collections import deque
import sys
sys.setrecursionlimit(2*10**5)
INF = 2**60


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


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor


# coordinates
dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]


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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
list = list(map(str,input()))
check = False
for i in list:
    if i=="7":
        check = True

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *


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


if __name__ == '__main__':
    a = input()

    count = 0
    for i in a:
        if "7" in i:
            count +=1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

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

Submission status: Accepted

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

solution()

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:
s = input()
print('Yes' if s.find('7') != -1 else 'No')

Submission status: Accepted

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]
S = list(input())
if '7' in S:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
## coding: UTF-8
from decimal import *
from itertools import permutations, combinations,combinations_with_replacement,product
import math
#from math import gcd

N = input()
#print(N[0])
#print(N[1])
#print(N[2])
ans = 'No'
for i in range(3):
    if(N[i] == '7'):
        ans = 'Yes'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
	 N = input()
	 if '7' in N:
	 	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:
src = input()
ans = 'Yes' if '7' in src else 'No'
print(ans)

Submission status: Accepted

Solution code:
import sys
import itertools
if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
N=input()

if N[0]=="7" or N[1]=="7" or N[2]=="7":
	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:
n = input()
r = 'No'
for c in n:
	if int(c) == 7:
		r = 'Yes'
		break
print(r)

Submission status: Accepted

Solution code:
import queue
import math
import copy
"""
N = int(input())
#S = input()
# (N,M) = (int(i) for i in input().split(" "))
# A = [int(i) for i in input().split()]
A = []
for i in range(N):
	A.append(int(input()))

print(A)

"""

a = int(input())

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
ans = 'No'

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
ans = 0
if N % 10 == 7:
    ans = 1

N //= 10
if N % 10 == 7:
    ans = 1

N //= 10
if N % 10 == 7:
    ans = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

n = input().strip()

def cond():
    return '7' in n

if cond():
    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:
A=input()
if A[0] == "7" or A[1] == "7" or A[2] == "7":
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
s_list=list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8


def solve(*args: str) -> str:
    n = args[0]

    return 'Yes' if 0 < n.count('7') else 'No'


if __name__ == "__main__":
    print(solve(*(open(0).read().splitlines())))

Submission status: Accepted

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

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

Submission status: Accepted

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

print("No")

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline

sys.setrecursionlimit(10 ** 8)


def main():
    N = input()
    if N.count("7") >= 1:
        print("Yes")
    else:
        print("No")








if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
usr = str(input())
flag = False


for n in range(3):
    if usr[n] == "7":
        flag = True

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

Submission status: Accepted

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

if '7' in n:
    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:
import sys

# 入力を整数に変換して受け取る
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
# 入力全てを整数に変換したものの配列を受け取る
def LI(): return list(map(int, sys.stdin.readline().split()))
# 入力全てを整数に変換して1引いたものの配列を受け取る
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SR(): return sys.stdin.readline().rstrip()

ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ascii_uppercase2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ'

# リストを改行区切りで出力する
p2D = lambda x: print(*x, sep="\n")
p2E = lambda x: print(''.join(x))
p2S = lambda x: print(*x, sep=" ")

N = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
N=input()

flg=False

for i in range(3):
    if N[i]=="7":
        flg=True

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

Submission status: Accepted

Solution code:
n = ''.join(input())

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
n=input()

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import copy
import sys
import fractions
# import numpy as np
# import statistics
import decimal
import heapq
import collections
import itertools
import bisect

# from operator import mul

sys.setrecursionlimit(100001)


# input = sys.stdin.readline
# sys.setrecursionlimit(10**6)

# ===FUNCTION===

def getInputIntList():
    outputDataList = []
    inputData = input().split()
    outputDataList = [int(n) for n in inputData]

    return outputDataList


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList


# ===CODE===

n = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
def resolve():
    N = sr()
    for i in range(len(N)):
        if N[i] == '7':
            print('Yes')
            return
    print('No')
    return
resolve()

Submission status: Accepted

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

    print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import collections
import math
import operator as op
from functools import reduce
from collections import Counter
import numpy as np
import math
import bisect
import heapq


MOD = 1000000007


def gcd(a, b):
    while b:
        a, b = b, a % b
    return a


def lcm(a, b):
    return a * b // gcd(a, b)


def get_inputs(cast_func=None):
    if cast_func is None:
        return input().split()
    else:
        return list(map(cast_func, input().split()))


def get_input(cast_func=None):
    if cast_func is None:
        return input()
    else:
        return cast_func(input())


def is_prime(n):
    if n == 1:
        return False
    for i in range(2, int(n**0.5)+1):
        if n % i == 0:
            return False
    return True


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




if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A=input()
flag=False
for i in A:
    if i=="7":
        flag=True
    else:
        falg=flag
if flag:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def a (n) :
    while n != 0 :
        if n%10 == 7 :
            print("Yes")
            return
        n //= 10 
    print("No")
    return 

if __name__ == "__main__" :
    n = int(input())
    a(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

# S = input()
# N, M = map(int, input().split())
# nums = list(map(int, input().split()))
# nums_2d = [list(map(int, input().split())) for _ in range(N)]


def main():
    N = input()

    ans = 'No'
    for s in N:
        if int(s) == 7:
            ans = "Yes"

    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A = input()

ans = "No"
for i in list(A):
    if i == "7":
        ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
#akash mandal: jalpaiguri government engineering college
#take a look on special cases: test cases
import sys,math

def ii(): return int(input())
def mii(): return map(int,input().split())
def lmii(): return list(mii())

def decimalToBinary(n):  
    return bin(n).replace("0b", "")

def main():
    n=input()
    if n.count("7")>=1:
        print("Yes")
    else:
        print("No")
    
        
    
            

        
if __name__=="__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    # divisors.sort()
    return divisors

def ValueToBits(x,digit):
    res = [0 for i in range(digit)]
    now = x
    for i in range(digit):
        res[i]=now%2
        now = now >> 1
    return res

def BitsToValue(arr):
    n = len(arr)
    ans = 0
    for i in range(n):
        ans+= arr[i] * 2**i
    return ans

def ValueToArray10(x, digit):
    ans = [0 for i in range(digit)]
    now = x
    for i in range(digit):
        ans[digit-i-1] = now%10
        now = now //10
    return ans
'''
def cmb(n, r, p):
    if (r < 0) or (n < r):
        return 0
    r = min(r, n - r)
    return fact[n] * factinv[r] * factinv[n-r] % p

p = 2
N = 10 ** 6 + 2
fact = [1, 1]  # fact[n] = (n! mod p)
factinv = [1, 1]  # factinv[n] = ((n!)^(-1) mod p)
inv = [0, 1]  # factinv 計算用

for i in range(2, N + 1):
    fact.append((fact[-1] * i) % p)
    inv.append((-inv[p % i] * (p // i)) % p)
    factinv.append((factinv[-1] * inv[-1]) % p)

'''

#a = list(map(int, input().split()))

#################################################
#################################################
#################################################
#################################################


s = input()

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

Submission status: Accepted

Solution code:
def resolve():
    '''
    code here
    '''
    N = input()

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
import sys

num = sys.stdin.readline().strip()
if "7" in num:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=list(input())
print("Yes" if "7" in N else "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:
if __name__ == "__main__":
    n = input()

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

    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/bin/bash
''':'
docker run --rm -it -v $(cd $(dirname $0) && pwd):/vo:ro pypy:3-2.4.0 \
   /bin/bash -c "pypy3 /vo/$(basename $0) < /vo/input.txt"
exit $?
'''
import sys


def _s(): return sys.stdin.readline().strip()


def main():
    if "7" in _s():
        ans = "Yes"
    else:
        ans = "No"
    return ans


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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
N=input()

for s in N:
    if s == '7':
        print('Yes')
        sys.exit()

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
  n = input()
  for item in n:
    if item == '7':
      print('Yes')
      exit()
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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


main()

Submission status: Accepted

Solution code:
S = input()


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

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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


def solve(N: int):
    if '7' in [c for c in str(N)]:
        print(YES)
    else:
        print(NO)
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
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: 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()
print("YNeos"["7" not in n::2])

Submission status: Accepted

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

N=input()
flag=False
for i in range(len(N)):
	if int(N[i])==7:
		flag=True
		break

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

Submission status: Accepted

Solution code:
# A - Lucky 7

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(500000)

MOD = 1000000007

def smax(a,b):
    if a>b:
        return a
    else:
        return b

def smin(a,b):
    if a<b:
        return a
    else:
        return b

def main():
    N = int(readline())
    N=str(N)
    flag=False
    for i in range(3):
        if N[i]=="7":
            flag=True
    if flag:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N = sr()
bl = False
for i in range(3):
    if N[i] == '7':
        bl = True
print('Yes' if bl else 'No')

Submission status: Accepted

Solution code:
n = list(input(''))

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

Submission status: Accepted

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

N = int(input())

if N % 10 == 7:
    print("Yes")
    exit()
N //= 10

if N % 10 == 7:
    print("Yes")
    exit()
N //= 10

if N % 10 == 7:
    print("Yes")
    exit()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())

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

print(ans)

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:


n = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

def check():
    for s in N:
        if s == '7':
            return True
    return False

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = 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'
    
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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