#include <bits/stdc++.h>

using namespace std;


int main(){
  int n;
  cin >> n;
  for(int i=0;i<3;i++){
    int tmp=n%10;
    n=n/10;
    if(tmp==7){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
