#include <iostream>

using namespace std;

int main(){

    int n = 0;
    cin >> n;

    bool contains7 = false;

    while(n!= 0){
        if(n%10 == 7) contains7 =true;
        n = n/10;
    }

    if(contains7){
        cout <<"Yes\n";
    }else cout <<"No\n";

	return 0;
}