#include <iostream>
#include <cstdlib>
#include <string>

using namespace std;

int main() {
  string n;
  cin >> n;

  cout << ((n[0] == '7' || n[1] == '7' || n[2] == '7')? "Yes" : "No") << endl;
  return 0;
}
