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

int main() {
  string s;
  cin >> s;
  
  if(s.at(0)=='7' ||s.at(1)=='7' || s.at(2)=='7') cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}



#include<iostream>
//#include<algorithm>
#include<cmath>
#include<string>
//#include<set>
//#include<vector>
#include<iomanip>
using namespace std;
int main(){

    int n;
    cin >> n;
    if(n%10==7){cout<<"Yes"; return 0;}
    else{n/=10;}
    if(n%10==7){cout<<"Yes"; return 0;}
    else{n/=10;}
    if(n%10==7){cout<<"Yes"; return 0;}
    else{n/=10;}
    cout<<"No";
    return 0;
}
