#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <map>
#include <cstring>
using namespace std;
#define MAXH 101
#define MAXW 101
#define INF 1000
#define MAXN 100001

int N, M;

bool check(int N){
    bool f = false;
    if(N % 10 == 7) return true;
    N /= 10;
    if(N % 10 == 7) return true;
    N /= 10;
    if(N % 10 == 7) return true;
    return false;
}


int main(){
    cin >> N;
    if(check(N)) printf("Yes\n");
    else printf("No\n");
    
    return 0;
}