#ifdef ConanYu
#include "E:\yuzining\code\local.hpp"
#else
#pragma GCC optimize("-O3")
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define debug(...) do { } while(false)
void Main();
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie();
  Main();
  return 0;
}
#endif

void Main() {
  int n; cin >> n;
  bool ok = false;
  while(n) {
    if(n % 10 == 7) ok = true;
    n /= 10;
  }
  cout << (ok ? "Yes\n" : "No\n");
}