#include <bits/stdc++.h>
using namespace std;
#define ll long long


int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
    string s;
    cin>>s;
    for(auto l : s) if(l=='7') return puts("Yes"),0;
    cout<<"No";
}
