#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
void solve(){
    
}
int main() {
  int n;
  cin>>n;
  bool ok=false;
  while(n>0){
    int k=n%10;
    if(k==7)
      ok=true;
    n=n/10;
  }
  if(ok)
    cout<<"Yes";
  else
    cout<<"No";
  
  return 0;
}