
from sys import stdin
import sys
sys.setrecursionlimit(10**8)

def nextLine(): return next(stdin)
def nextStrList(): return nextLine().split()
def nextIntList(): return [int(_) for _ in nextStrList()]


def ox(s, i):
	return s[i]=="o"


def main():
	n=int(nextLine())
	if "7" in str(n):
		print("Yes")
	else:
		print("No")		
	
if __name__=="__main__":
	main()
