#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
//A
int main(){
    int n;
    scanf("%d",&n);
    int x=n/100,y=n/10%10,z=n%10;
    if(x==7||y==7||z==7) printf("Yes\n");
    else printf("No\n");
}
