/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int a,b,c,d;
    cin>>a;
    b=a%10;
    c=(a/10)%10;
    d=a/100;
    if(a==7)
    cout<<"Yes";
    else if(c==7)
    cout<<"Yes";
    else if(d==1)
    cout<<"Yes";
    else
    {
        cout<<"No";
    }
    


    

    return 0;
}
