#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include <cmath>

using namespace std;
const long long INF = (long long) (1e18)+1;

int main() {
  int n;
  cin >> n;
  while (n!=0) {
    int temp = n%10;
    if (temp == 7) {
      cout << "Yes" << endl;
      return 0;
    } 
    n/=10;
  }
  cout << "No" << endl;
  return 0;
}