#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
const int inf = 1001001001;

int main(){
  int n;
  cin >> n;
  string ans = "No";
  
  for(int i = 1; i <=3; i++){
    if (n%10 == 7){
      ans = "Yes";
      break;
    }
    else n /= 10;
  }
  
  cout << ans << endl;
  
}