#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
 
using namespace std;
int main()
{
  int N;
  int one7;
  int ten7;
  int hnd7;
  
  cin >> N;

    one7 = N % 10;
    ten7 = N % 100 - one7;
    hnd7 = N - ten7 - one7;

    if(one7 == 7){
        cout << "Yes";
    }
    else if(ten7 == 70){
        cout << "Yes";
    }
    else if(hnd7 == 700){
        cout << "Yes";
    }
    else{
        cout << "No";
    }
      return 0;
}