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

int main() {
  int N,a,b,c;
  cin >> N ;
  a = floor(N%100);
  b = floor((N-a*100)%10);
  c = N-a*100-b*10;
  if (a == 7 || b == 7 || c == 7){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
