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

int main(void){
 int number;
 cin >> number;
  while(number!=0){
    if(number%10==7){
      cout << "Yes";
      return 0;
    }
    number /= 10;
  }
  cout << "No";
  return 0;
}
