#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <iomanip>
#include <cassert>
#include <functional>


using namespace std;

int main() {
  int n;
  cin>>n;
  if(n/100!=7 && (n%100)/10 != 7 && (n%100)%10 != 7)
    cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
  return 0;
}