#include <iostream>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <algorithm>
#include <math.h>
#include<string>
#include<vector>
using namespace std;
int main()
{
    string N;
    cin >> N[0] >> N[1] >> N[2];
    if(N[0] == '7' || N[1] == '7' || N[2] == '7') cout << "Yes" << endl;
    else    cout << "No" << endl;
    return 0;
}