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

int main() {
	string s;
	cin >> s;
	for(int i=0;i<3;i++){
	    char ch = s[i];
	    if(ch=='7'){
	        cout << "Yes" << endl;
	        break;
	    }
	    else if(i==2){
	        cout << "No" << endl;
	    }
	}
	return 0;
}
