#include <bits/stdc++.h>
using namespace std;
#define rep(i,m,n) for(int (i)=(int)(m);i<(int)(n);i++)
#define REP(i,n) rep(i,0,n)
#define ll long long
#define ull unsigned long long
int main()
{
  ll N;
  cin >> N;
  if((N % 10 == 7) || (N / 100 == 7) || ((N / 10) % 10 == 7)) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}