#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <vector>

using namespace std;

int main(){
	int N;
	cin >> N;
	bool flag = false;
	while(N > 0){
		 if(N % 10 == 7){
			 flag = true;
			 break;
		 }
		 N /= 10;
	}
	if(flag){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	
}