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

int main() {
  
  int n;
  cin >> n;
  
  string s = to_string(n);
  int ans = 0;
  for(int i = 0; i < 3; i++){
    if(s.at(i) == '7'){
      ans = 1;
    }
  }
  
  if(ans == 0){
    cout << "No" << endl;
  }
  else{
    cout << "Yes" << endl;
  }

}
#include<iostream>
using namespace std;
int main (void)
{
  int r;
  cin>>r;
  while(r>1)
  { 

    if(r%10==7)
    {
      cout<<"Yes";return 0;
    }
    r=r/10;
  }
  cout<<"No";
}