#include<bits/stdc++.h>
using namespace std;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    string s;
    cin>>s;
    if (s.find('7') !=string::npos) {
         cout << "Yes";
     }
	else
	cout<<"No";
}
