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

int main(){
    int a,b,c,d;
    cin>>a;
    b=a%10;
    c=a/10%10;
    d=a/100;
    if(b==7||c==7||d==7)cout<<"Yes";
    else cout<<"No";
    return 0;
}