#include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define md 1000000007
#define ld long double
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    ll n, i = 0, j= 0, k = 0, l = 0, m = 0, a = 0, b = 0, sum = 0, x = 0, y = 0, z = 0, c, p = 0;
    string s;
    cin >> s;
    for(i = 0; i < 3; i++){
        if(s[i] == '7'){
            cout << "Yes";
            return 0;
        }
    }
    cout << "No";

    return 0;
}
