#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
    // Your code here!
    int x,y,z,n;
    cin >> n;
    if(7 == n%10 || 7 == n/10%10 || 7 == n/100){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}
