#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string A;
  cin >> A;
  
  if(A[0]=='7' ||A[1]=='7'||A[2]=='7'){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
    