#include<iostream>
#include<string>
#include<algorithm>
#include<bits/stdc++.h>
#include<iomanip>
using namespace std;

typedef long long ll;
typedef long double ld;

int MOD=1000000007;

int main(){
  ll N;
  cin >> N;
  if(N%10==7 || N/10%10==7 || N/100%10==7)
  cout << "Yes" << endl;
  else cout << "No" << endl; 
}