#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF = 1e9;
const int MOD = 1e9 + 7;

int main(){
  int N;
  cin >> N;
  bool check = false;
  if(N % 10 == 7)
    check = true;
  if(N / 10 % 10 == 7)
    check = true;
  if(N / 100 == 7)
    check = true;
  if(check)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}