#include <iostream>
using namespace std;
int main()
{
  int n;
  cin >> n;
 int x=n/100;
 int y=n%100/10;
 int z=n%10;
  if (x==7 || y==7 || z==7)
    cout << "Yes";
  if (x!=7 && y!=7 && z!=7)
    cout  << "No";
}