#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n,a,b;
  cin>>n;
  a=n/10:
  b=n/100;
  string str;
  str="No";
  if(a%10==7 || b%10==7 || n%10==7){
    str="Yes";
  }
  cout<<str;
}