#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
#include <cstring>
#include <iomanip>

using namespace std;

int main(){
   int N;
   cin >> N;
   bool ok =false;
   while(N!=0){
      if(N%10==7){
         ok = true;
      }
      N/=10;
   }
   if(ok) cout << "Yes" << endl;
   else cout << "No" << endl;
   return 0;
}
