#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
const int INF = 1000000001;

int main(){
  string s;
  cin >> s;
  if(s.at(0) == '7' || s.at(1) == '7' ||s.at(2) == '7'){
    cout << "Yes" <<endl;
  }else{
    cout << "No" <<endl;
  }
}
