#include <iostream>
using namespace std;
int main(){
  string n;
  cin>>n;
  if(n.at(0)=='7') cout<<"Yes";
  else if (n.at(1)=='7') cout<<"Yes";
  else if(n.at(2)=='7') cout<<"Yes";
  else cout<<"No";
}