#include <bits/stdc++.h>
using namespace std;
using ll = long long;
 
int main() {
cout<<fixed<<setprecision(10);

string s;
  cin >>s;
  if (s[0]=='7' || s[1]=='7' ||s[2]=='7') cout <<"Yes";
  else cout <<"No";
	
}