#include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

using namespace std;

typedef long long ll;

#define MOD 1000000007

int main() {
  string s;
  cin >> s;
  bool ok = false;
  if (s[0] == '7') ok = true;
  if (s[1] == '7') ok = true;
  if (s[2] == '7') ok = true;
  cout << (ok ? "Yes" : "No") << endl;
  return 0;
}