#include<iostream>
using namespace std;
 
int main()
{
    if ((N/100)==7){
  cout << "Yes";
  return 0;
}
N-=(100*(N/100))
if (N%10==7){
  cout << "Yes";
  return 0;
}
N-=(10*(N/10))
if (N==7){
  cout << "Yes";
  return 0;
}
 
cout << "No";
 return0;
}