#include <iostream>
using namespace std;

int check(string s){
    for (int i = 0; i < s.length(); i++){
        if (s[i] == '7') return 1;
    }
    return 0;
}


int main()
{
    string s;
    cin >> s;
    if (check(s)) cout << "Yes";
    else cout << "No";
    return 0;
}
