#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <string>
#include <cmath>
using namespace std;
typedef long long ll;
const ll MOD = 1000000007;
int A[4005]={0};

int main(){
 int n;
 cin>>n;
 if((n%10==7)||(n/10)%10==7||n/100==7)cout<<"Yes"<<endl;
 else cout<<"No"<<endl;
}