#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long int

int main(){

  int A;
  cin>>A;
  int a=A/100,b=(A-a*100)/10;
  if(a==7)
    cout<<"Yes";
  else if(b==7)
    cout<<"Yes";
    else if(A-a*100-b*10==7)
      cout<<"Yes";
    else
      cout<<"No";
  //cout<<a<<b;
      
    

  return 0;
}
