#include <bits/stdc++.h>
using namespace std;
void ke(char x[], int y);
int main() {
  char S[100];
  int x;
  cin >> S;
  for (int i = 0; S[i] != '\0'; i++) {
    x += 1;
  }
  ke(S, x);
  return 0;
}
void ke(char x[], int y) {
  char k[100] = {"keyence"};
  char n[2];
  int ans = 0;
  int i, j;
  int a = 0;
  for (i = 0; i < 7; i++) {
    for (j = 0; j < y; j++) {
      if (x[j] == k[i]) {
        a += 1;
        x[j] = n[0];
        break;
      }
    }
  }
  if (a == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
