#include<iostream>
using namespace std;

int main(){
  long N;
  int a,b,c;
  cin >> N;
  a = N%10;
  c = N/100;
  b = (N%100)/10;
  if(a==7|b==7|c==7){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  return 0;
}
