#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = 1000000007;
long long cine(long long a, long long b) {
  if (a <= b) {
    return a;
  } else {
    return b;
  }
};
void vec_initialize(vector<ll>& a, const ll N) {
  ll c;
  for (int i = 0; i < N; i++) {
    cin >> c;
    a.push_back(c);
  }
};
void vec_pair_initialize(vector<pair<ll, ll>>& a, const ll N) {
  ll c, d;
  for (int i = 0; i < N; i++) {
    cin >> c >> d;
    a.push_back(make_pair(c, d));
  }
};
bool Pinching_In(ll a, ll x, ll b) {
  if (a <= x && x < b) {
    return true;
  }
  return false;
}
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  if (S.substr(0, 7) == key) {
    cout << "Yes";
    return 0;
  }
  if (S.substr(S.size() - 7, 7) == key) {
    cout << "Yes";
    return 0;
  }
  if (S[0] != 'k') {
    cout << "No";
    return 0;
  }
  for (int i = 0; i < 7; i++) {
    if (S[i] != key[i]) {
      if (S.substr(S.size() - 7 + i, 7 - i) == key.substr(i, 7 - i)) {
        cout << "Yes";
        return 0;
      } else {
        cout << "No";
        return 0;
      }
    }
  }
}
