#include<bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin>> str;
  bool f = true;
  for ( int i = 0 ; i < 3 ; i++ ) {
    if ( str.at(i) == '7' ) {
      cout << "Yes" << endl;
      f = false;
      break;
    }
    
  }
  
  if (f) {
    cout << "No" << endl;
  }
}