#include <iostream>
#include <cstring>
#include <algorithm>
#include <functional>
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
 
int main () {
  int n;
  cin >> n;
  if (n/100 == 7 || (n%100)/10==7 || n%10==7){
    cout << "Yes";
  }else{
    cout << "No";
  }
 
  return 0;
}