#include<bits/stdio.h>
using namespace std;
int main() {
    int a;
    cin >> a;
    if (a % 10 == 7)cout << "Yes";
    else if ((a / 10) % 10 ==7)cout<< "Yes";
    else if (a / 100 == 7)cout<< "Yes";
    else cout << "No";
}
