#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main(int argc, const char * argv[]) {
  
    int N;
    cin >> N;
  
  if(N % 10 == 7){
    cout << "Yes";
    return 0;
  }
  
  if(N / 10 % 10 == 7){
    cout << "Yes";
    return 0;
  }
  
  if(N / 100 % 10 == 7){
    cout << "Yes";
    return 0;
  }
  
  cout << "No";
  
  return 0;
  
}