#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#include <algorithm>
#include <functional>
 
using namespace std;
 
 
int main()
{
	int N, a, b, c;

    cin >> N;

    a = N / 100;
    b = (N / 10) % 10;
    c = N % 10;  

 
    if(a == 7 || b == 7 || c == 7)
        cout << "Yes";
    else
        cout << "No";
 
	return 0;
}