#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define pr(x) cout << x << endl

int main(int argc, char const *argv[])
{
    int n;
    cin >> n;
    int a = n / 100;
    int b = (n - a * 100) / 10;
    int c = n - a * 100 - b * 10;
    if(a == 7 || b == 7 || c == 7) pr("Yes");
    else pr("No");
    return 0;
}

