#include <iostream>
#include <string>
using namespace std;

int main()
{
  string s;
  cin >> s;
  bool y = false;
  if(s[0]=="7"||s[1]=="7"||s[2]=="7") y=true;
  
  if(y) cout << "Yes" << endl;
  else  cout << "No" << endl;
}