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