#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int N;
    cin >> N;
    if(N%10 == 7 || (N/10)%10 == 7 || N/100 == 7)
        cout << "Yes";
    else
        cout << "No";
    
}