#include<iostream>

using namespace std;

static const int MAX_N = 100;
static const int MAX_A = 10000;

int a[MAX_N + 1];

bool dp[MAX_N + 1][MAX_A + 1];

int main() {
    int n;
    string ans;

    cin >> n;

    if (n % 10 == 7) ans = "Yes";
    else if ((n / 10) % 10 == 7) ans = "Yes";
    else if ((n / 100) == 7) ans = "Yes";
    else  ans = "No";

    cout << ans << endl;

    return 0;
}
