#include <iostream>
#include <string>



using namespace std;

int main()
{
    string s;

    cin>> s ;
    string ans="No";

    if(s[0]=='7'  || s[1]=='7' ||s[2]=='7')ans="Yes";
    cout<<ans;
}




