#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
    string N;  cin >> N;
    bool flag = false;
    if(N[0] == '7') flag = true;
    if(N[1] == '7') flag = true;
    if(N[2] == '7') flag = true;
    if(flag) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}
