include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define FOR(i,start,end) for(int i=start;i<=end;i++)
const int INF = 1001001001;
using namespace std;
typedef long long ll;

int main()
{
  string s;
  cin >> s;

  rep(i,3){
    if(s[i]=='7'){
      cout << "Yes"<< endl;
      return 0;
    }
  }
  cout << "No" << endl;
}
