#include <iostream>
using namespace std;
int main()
{
    ios::sync_with_stdio(0);
    int x;
	cin >> x;
	if(x % 10 == 7 || x / 100 == 7 || x / 10 % 10 == 7) cout<<"Yes";
	else cout<<"No"; 
    return 0;
}
