#include<bits/stdc++.h>

using namespace std;

using ll = long long;
constexpr int mo = 1e9+7;
constexpr int inf = 1<<30;
constexpr ll infl = 1ll<<60;
constexpr ll mo2 = 998244353;

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    int n;
    cin>>n;
    if(n%10 == 7 or (n/10)%10 == 7 or (n/100)%10 == 7){
        cout << "Yes" << endl;
    }
    else cout  << "No" << endl;
    
    return 0;
}