#include <bits/stdc++.h>
using namespace std;

int main() {
 int n;
 cin >> n;
 int k = n / 100;
 int l = n / 10;
 int m = n - 7;
 if(k == 7 || l == 7 || m % 10 == 0){
     cout << "Yes" << endl;
 }
 else cout << "No" << endl;
 }

  

  
