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

int main() {
  int N;
  cin >> N;
  int hun,ten,one;
  hun=N/100;
  ten=(N-100*hun)/10;
  one=N-100*hun-ten*10;
  if(hun==7 || ten==7 || one==7){
    cout << "Yes" << endl;
  }
  else cout << "No" << endl;

}