#coding:utf-8

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