#include<bits/stdc++.h>
using namespace std;

int main()
{
    string s;
    int flag=0;
    cin>>s;
    if(s[0]=='7'||s[1]=='7'||s[2]=='7') flag=1;
    if(flag) cout<<"Yes";
    else cout<<"No";
    
    return 0;
}