#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    string N;
  cin >> N;
  int c = 0;
  if(N[0] == '7'){c++ ;};
  if(N[1] == '7'){c++ ;};
  if(N[2] == '7'){c++ ;};
  if(c == 0){
  cout << "No" << endl;
  }else{
  cout << "Yes" << endl;};
}