#include <iostream.h>
#include <string>
using namespace std;

int main()
{
    string s;
    cin >> s;
    if(s.find("7")!=NULL)
        cout << "Yes";
    else
        cout << "No";

    return 0;
}
