#include <bits/stdc++.h>
#include <iomanip>
#define ll long long
using namespace std;

int main() {
  vector<char> c(3);
  cin >> c.at(0) >> c.at(1) >> c.at(2);
  if((c.at(0) == '7') || (c.at(1) == '7') || (c.at(2) == '7')) cout << "Yes" << endl;
  else cout << "No" << endl;
}
