#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
typedef long long ll;
int main(){
  char N[3];
  cin >> N;
  rep(i,3){
    if(N[i]=='7'){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" <<endl;
  return 0;
}