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

int main() {
 int N;
 cin >> N;
 int a = N/100;
 int b = (N-a*100)/10;
 int c = (N-a*100-b*10);
 if(a == 7){
   cout << "Yes" << endl;
   return 0;
 }
 if(b == 7){
   cout << "Yes" << endl;
   return 0;
 }
 if(c == 7){
   cout << "Yes" << endl;
   return 0;
 }
 else cout << "No" << endl;