#include <iostream>
using namespace std;

int main(){
    int n;
    cin >> n;
    int a, b, c;
    a=n%10;
    b=(n/10)%10;
    c=(n/100)%10;
    if(a==7 || b==7 || c==7){
        cout << "Yes" << "\n";
    }else{
        cout << "No" << "\n";
    }
    return 0;
}