//
//  main.cpp
//  ProgrammingContestChallengeBook2
//
//  Created by Hisaki Kobayashi on 2020/04/04.
//  Copyright © 2020 Hisaki Kobayashi. All rights reserved.
//

#include <iostream>
#include <stdio.h>
#include <string>
#include <bits/stdc++.h>
#include <stdlib.h>
//#include "mylibrary.hpp"

using namespace std;
int main(){
    int N; cin >> N;
    
    int hyaku=(N/100)%10,zyu=(N/10)%10,iti=N%10;
    
//    cout << hyaku << " " << zyu << " " << iti << endl;
    if(hyaku==7 || zyu == 7 || iti == 7)
        cout << "Yes" << endl;
    else{
        cout << "No" << endl;
    }
    
    
    
    
    
    
    
    
    
    
    return 0;
 
}
