#include <bits/stdc++.h>
using namespace std;
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-9;
struct Edge {
  long long to;
  long long cost;
};
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  int ans = 0;
  for (int i = 0; i < (int)(7); i++) {
    if (S[i] != key[i]) {
      break;
    }
    ans++;
  }
  for (int i = 0; i < 7; i++) {
    if (S[S.size() - i] != key[key.size() - i]) {
      break;
    }
    ans++;
  }
  if (7 <= ans) {
    puts("YES");
  } else {
    puts("NO");
  }
}
