#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int n;
    cin >> n;
    if(n%10 == 7 || (n/10)%10 == 7 || (n/100)%10 == 7){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}
