#include <iostream>

using namespace std;

int main()
{
    int num;
    cin >> num;
    int temp1 = num % 10;
    int temp2 = (num / 10) % 10;
    int temp3 = (num / 100);
    if(temp1 == 7 || temp2 == 7 || temp3 == 7){
        cout << "Yes" <<endl;
    } else {
        cout << "No" <<endl;
    }
    return 0;
}