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

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