#include <bits/stdc++.h>
using namespace std;
#define rep(i, n)  for (int i = 0; i <  (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)

int main() {
  string Ans = "No";  // 回答：

  string N;cin >> N;  //
  if ( N.at(0) == '7' ) { Ans = "Yes";}
  if ( N.at(1) == '7' ) { Ans = "Yes";}
  if ( N.at(2) == '7' ) { Ans = "Yes";}

  cout << Ans << endl;
}
