#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  bool ba = false;
  int a = x/100;
  int b = x % 10;
  int c = (x - a*100)/10;
  if(a == 7 || b == 7 || c == 7) ba = true;
  if(ba) cout << "Yes";
  else cout << "No";
}