#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
#include<utility>
#include<cstdio>
#include<set>
#include<string>
#include<map>
#include<queue>
#include<stack>
#include <bitset>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep2(i,x,n) for (int i= x;i<n;i++)
#define all(v) v.begin(), v.end()
using ll = long long;
using vi = vector<int>; 
using vvi = vector<vi>;
typedef pair<int,int> P;
string s;
int k;
ll INF = 10000000000000000;
int main(){
    int N;
    cin >>N;
    int a,b,c;
    a=N%10;
    b=(N/10)%10;
    c=(N/100)%10;
    if((a == 7)||(b==7)||(c ==7)) cout<<"Yes"<<endl;
    else cout << "No"<<endl;
}