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

int main(){
  string N;
  cin >> N;
  for(;N.at(0)==7;){
    cout << "Yes" << endl;
    break;
  }
  for(;N.at(1)==7;){
    cout << "Yes" << endl;
    break;
  }
  for(;N.at(2)==7;){
    cout << "Yes" << endl;
    break;
  }
  for(;;;){
    cout << "No" << endl;
  }
}
