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

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