#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 9999999999999999;
using ll = long long;
int main(){
  int N;
  cin>>N;
  if(N%10 == 7){
    cout << "Yes" << endl;
    return 0;
  }
  else if((N/10)%10 == 7){
    cout << "Yes" << endl;
    return 0;
  }
  else if((N/100)510 == 7){
    cout << "Yes" << endl;
    return 0;
  }
  else{
    cout << "No" << endl;
    return 0;
  }
}
