#include <bits/stdc++.h>
using namespace std;

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