#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main() {
  string L;
  cin >> L;
  if(L[0]=='7'||L[1]=='7'||L[2]=='7'){
    cout << "Yes";
  }
  else{
    cout << "No";
  }
  cout << endl;
  return 0;
}
