#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define all(v) (v).begin(),(v).end()
using ll = long long;
using P = pair<int, int>;

int main(){
    int N;
    cin >> N;
    int a = N / 100;
    int b = N%100 / 10;
    int c = N%10;
    if (a == 7 || b == 7 || c == 7) puts("Yes");
    else puts("No");
    return 0;
}