#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < n; i++)
#define per(i,n) for(int i = n-1; i >= 0; i--)
typedef long long ll;
typedef pair<int, int> P;
typedef pair<long long, long long> Pll;
typedef vector<int> vi;
typedef vector<ll> vll;

int main() {
  string s;
  cin >> s;
  bool a = false;
  rep(i,s.size()) {
    if(s[i]=='7') a = true;
  }
  if(a) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}