#include<iostream>
#include <bits/stdc++.h>
#include <string>
#include <cstring>
#include <algorithm>
using namespace std;

int main() {
	
    string n  ;    
    cin >> n ;
    bool ans = false ;
    for (int i = 0; i < 3; i++){
        if(n[i]=='7'){
            cout << "Yes" << endl ;
            ans = true ;
            break ;
        }
    }
    
    if(!ans) cout << "No" << endl;
    
  	return 0;
}
