#include <iostream>
#include <cstdio>

using namespace std;

typedef long long ll;

string s;

int main()
{
    cin>>s;
    if(s[0] == '7' || s[1] == '7' || s[2] == '7') printf("Yes\n");
    else printf("No\n");
    return 0;
}
