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

int main(){
    int n;
    if(n%100==7){
        cout << 'Yes' << endl;
        return 0;
    }
    int x = n-(n%100)*100;
    if(x%10==7){
        cout << 'Yes' << endl;
        return 0;
    }
    int y = x-(x%10)*10;
    if(y == 7){
        cout << 'Yes' << endl;
      return 0;
    } 
    cout << 'No' << endl;
}