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

int main(){
  int A,B,C;
  cin >>A;
  
  string s="No";
  if (A/100==7) s="Yes";
  if ((A%100)/10==7) s="Yes";
  if ((A%10)==7) s="Yes";
  cout << s <<endl;
}