#include <bits/stdc++.h>
using namespace std;

int main(){
  int n;
  cin >> n;
  int a,b,c;
  c = n%10;
  b = (n/10)%10;
  a = (n/100)%10;
  if(a==7 or b==7 or c==7) cout<< "Yes" << endl;
  else cout << "No" << endl;
}