#include<bits/stdc++.h>
using namespace std;
typedef pair<int,int> P;

int main() {
  int n;
  cin >> n;
  bool check = 1;
  string x = to_string(n);
  for (int i = 0; i < x.size(); i++) {
    if (x.at(i) == '7') {
      cout << "Yes" << endl;
      check = 0;
      return 0;
    }
  }
  cout << "No" << endl;
  
}