#include <cstdio>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

int main(void)
{
    string s;
    cin >>s;

    bool contain = false;
    for(int i = 0; i < s.size(); i ++){
        if(s[i] == '7'){
            contain = true;
        }
    }

    if(contain){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;
}