#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Vi = vector<int>;
using Vl = vector<ll>;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;
constexpr int I_INF = numeric_limits<int>::max();
constexpr ll L_INF = numeric_limits<ll>::max();
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  string Key = "keyence";
  int cur = 0;
  for (int i = 0; i < (int)S.size(); i++) {
    if (S[i] == Key[cur]) {
      ++cur;
    }
    if (cur == (int)Key.size()) {
      break;
    }
  }
  if (cur == (int)Key.size()) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  cout << endl;
  return 0;
}
