#include <bits/stdc++.h>
using namespace std;
 
int main() {
int N;
int A;
int B;
int C;
	cin >> N; 
A=N/100;
B=N/10-10*A;
C=N-(100*A+10*B);
if(A==7||B==7||C==7){
  cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}