#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define ll long long
#define INF 999999999
using namespace std;

int main() {
  int N;
  std::cin >> N;
  bool ans = false;
  int a = N/100;
  N = N%100;
  if (a == 7) {
    ans = true;
  }
   a = N/10;
  N = N%10;
  if (a == 7) {
    ans = true;
  }
  a = N;
  if (a == 7) {
    ans = true;
  }
  if (ans) {
    std::cout << "Yes" << '\n';
  }
  else{
    std::cout << "No" << '\n';
  }
}
