#include <bits/stdc++.h>
using namespace std;

int main() {
  int N,h,t,o;
  cin >>  N;
  h = N/100;
  t = (N-(h*100))/10;
  o = N-(h*100)-t*10;
  if(h == 7 || t == 7 || o == 7){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}