#include <iostream>
#include <vector> 
#include <cmath>
#include <sstream>
#include <string>

int main(){
  int N;
  std::cin >> N;
  std::ostringstream oss;
  oss << N;
  std::string str = oss.str();
  bool check = false;
  for(int i = 0 ; i < (int)str.size(); i++){
    if(str[i] == '7'){
      check = true;
      break;
    }
  }
  if(check == true){
    std::cout << "Yes" << std::endl;
  }else{
    std::cout << "No" << std::endl;
  }
  return 0;
}
