#include <iostream>

using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define en '\n'

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int n;
    cin >> n;
    if(n/100 == 7 or n % 10 == 7 or (n / 10)%10 == 7){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}