//g++ -std=gnu++14 a.cpp

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <iostream>
#include <istream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#include <tuple>
#include <iomanip>
#include <random>
#include <math.h>

using namespace std;

#define ll long long
#define rep(i, n) for(ll i = 0; i < (n); i++)
ll MOD = 1e9 + 7;
int INF = 1 << 30;
ll INFL = 1LL << 60;

int main(){
  string S;
  cin >> S;
  bool hantei = false;
  rep(i,3){
    if(S.at(i) == '7'){
      hantei = true;
    }
  }
  if(hantei){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;

  }

 }
