#include <stack>
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <array>
#include <iomanip>
using namespace std;
int main(){
    std::stack<int> stack;
    string n;
    cin >> n;
    string ans = "No";
    for(int i = 0; i < 3; i++){
        if(n[i] == '7'){
            ans = "Yes";
            break;
        }
    }
    cout << ans << endl; 
    return 0;
}
    

