#include <bits/stdc++.h>
#define Phuong_ ios_base::sync_with_stdio(0); cin.tie(0);
#define pb push_back
#define mp make_pair

/// easy access -------------
using namespace std;
using ll = long long;
using ld = long double;
typedef pair<ll,ll> pii;
///-------------------------


int main()
{
    Phuong_; /// <3
    string s;
    cin >> s;
    bool ans=false;
    for(int i=0;i<3; ++i)
        if (s[i]=='7') ans=true;
    if (ans) cout << "Yes"; else cout << "No";
    return 0;
}

