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

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