#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char key[] = "keyence";
  int i, j, len, sa[6], num[7];
  char str[101];
  for (i = 0; i < 101; i++) {
    scanf("%c", &str[i]);
    if (str[i] == '\n') break;
  }
  len = i;
  j = 0;
  char ch;
  int co = 0, pla;
  for (j = 0; j <= len - 7; j++) {
    if (str[j] == 'k') {
      pla = j;
      co++;
      break;
    }
  }
  if (pla == 0) {
    co = 0;
    pla = 0;
    for (i = 0; i < 7; i++) {
      for (j = pla; j < len; j++) {
        if (key[i] == str[j]) {
          num[i] = j;
          pla = j + 1;
          co++;
          break;
        }
      }
    }
    if (co != 7) {
      cout << "NO" << endl;
      return 0;
    } else {
      co = 0;
      for (i = 0; i < 6; i++) sa[i] = num[i + 1] - num[i];
      for (i = 0; i < 6; i++) {
        if (sa[i] != 1) co++;
      }
      if (co <= 1) {
        cout << "YES" << endl;
        return 0;
      } else {
        cout << "NO" << endl;
        return 0;
      }
    }
  } else {
    pla = co;
    co = 0;
    int nu = 0;
    for (i = 0; i < 7; i++) {
      for (j = nu; j < len; j++) {
        if (key[i] == str[j]) {
          num[i] = j;
          nu = j + 1;
          co++;
          break;
        }
      }
    }
    if (co != 7) {
      cout << "NO" << endl;
      return 0;
    } else {
      co = 0;
      for (i = 0; i < 6; i++) sa[i] = num[i + 1] - num[i];
      for (i = 0; i < 6; i++) {
        if (sa[i] != 1) co++;
      }
      if (co < 1) {
        cout << "YES" << endl;
        return 0;
      } else {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  return 0;
}
