#include <iostream>

using namespace std;

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

   bool here = true;

   for (int i = 0; i < s.length(); i++) {

    if (s[i] == '7')
    here = false;

   }

   if (here == false)
    cout << "Yes";
    else
    cout << "No";

    return 0;
}
