#include <bits/stdc++.h>
using namespace std;
#define REP(i, init, n) for(int i = (int)(init); i < (int)(n); i++)

#define vi vector<int>
#define vl vector<long>
#define vvi vector<vector<int>>
#define vvl vector<vector<long>>
#define pint pair<int, int>
#define plong pair<long, long>

int main() {
    int N;
    cin>>N;
    int a = N/100;
    int b = (N % 100) /10;
    int c = N % 10;
    if(a==7 || b==7 || c==7) cout << "Yes" << endl;
    else cout << "No" << endl;
}