#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for(int (i) = 0; (i) <(int)n; ++(i))
#define rep2(i,s,n) for(int (i) = (s); (i) <(int)(n); ++(i))

int main() {
    int n;
    cin >>n  ;

    int a,b,c;
    a = n / 100;
    b = n % 100 / 10;
    c = n - a*100 - b*10;

    if(a == 7 || b == 7 || c == 7) cout << "Yes";
    else cout << "No";



}