#include<bits/stdc++.h>
using namespace std;
int main()
{ 
    int n,a,b,c;
    cin>>n;
    
    a=n%10;
    b=n/10%10;
    c=n/100;
    
    if(a==7||b==7||c==7) 
        cout<<"Yes";
    else
        cout<<"No";
    
    return 0;
}