/************************************
/ AUTHOR : YATHARTH GOSWAMI         /  
/ ALIAS : hacker_yg                 /
/ INSTITUTE : IIT Kanpur            /
************************************/
//          TEMPLATE                //

#include <bits/stdc++.h>

#define ll long long
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second

using namespace std;

int main(){
    int N;
    cin >> N;
    while (N > 0){
        int d = N%10;
        N /= 10;
        if (d == 7){
            puts ("Yes");
            return 0;
        }
    }
    puts ("No");
    return 0;
}

