#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
typedef long long  ll;
typedef long double lb;
using namespace std;
int main() {
    int a;
    cin >> a;
    if (a % 10 == 7)cout << "Yes";
    else if ((a / 10) % 10 ==7)cout<< "Yes";
    else if (a / 100 == 7)cout<< "Yes";
    else cout << "No";
}
