#include <bits/stdc++.h>  
using namespace std;  
typedef long long ll; 
typedef long double ld; 
const int INF = 0x3f3f3f3f;  
const int N = 200000 + 5;

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