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

int main() {
  int x,a,b,c,d;
  cin >> x;
  
  a = x / 100;
  b = x / 10;
  c = b % 10;
  d = x % 10;
  
  if (a = 7 || c = 7 || d = 7) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}