#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
using QWORD = unsigned long long;
using SQWORD = long long;
using DWORD = unsigned int;
using SDWORD = int;
using WORD = unsigned short;
using SWORD = short;
using BYTE = unsigned char;
using SBYTE = char;
using DOUBLE = double;
using FLOAT = float;
static inline QWORD MAX(QWORD a, QWORD b) { return a > b ? a : b; }
static inline DWORD MAX(DWORD a, DWORD b) { return a > b ? a : b; }
static inline SDWORD MAX(SDWORD a, SDWORD b) { return a > b ? a : b; }
static inline QWORD MIN(QWORD a, QWORD b) { return a < b ? a : b; }
static inline DWORD MIN(DWORD a, DWORD b) { return a < b ? a : b; }
static inline SDWORD MIN(SDWORD a, SDWORD b) { return a < b ? a : b; }
using M_BOOL = bool;
static DWORD adwFactoryNum[(60)];
static DWORD adwFactoryCumMul[(60)];
static DWORD s_dwFactoryNum = 0;
static inline void inputString(char *pcStr) {
  char *pcCur = pcStr;
  for (;;) {
    char c = getchar();
    if (('\n' == c) || (EOF == c)) {
      break;
    }
    *pcCur = c;
    pcCur++;
  }
  *pcCur = '\0';
}
static inline SDWORD inputSDWORD(void) {
  SDWORD lNumber = 0;
  SDWORD lMultiplier = 1;
  M_BOOL bRead = (false);
  for (;;) {
    char c = getchar();
    if (!bRead) {
      if ('-' == c) {
        lMultiplier = -1;
      }
    }
    if (('0' <= c) && (c <= '9')) {
      lNumber *= 10;
      lNumber += (c - '0');
      bRead = (true);
    } else {
      if (bRead) {
        return lNumber * lMultiplier;
      }
    }
  }
}
static char s_acString[(101)];
static const char s_acRefString[(101)] = "keyence";
int main() {
  inputString(s_acString);
  DWORD dwRefIdx = 0;
  bool bMatch = false;
  bool bMatchPrev = true;
  bool bNextMatchInh = false;
  for (DWORD dwIdx = 0; dwIdx < strlen(s_acString); dwIdx++) {
    if (s_acString[dwIdx] == s_acRefString[dwRefIdx]) {
      bMatch = true;
      dwRefIdx++;
    } else {
      if (bNextMatchInh) {
        printf("NO\n");
        return 0;
      }
      bMatch = false;
    }
    if (bMatch && !bMatchPrev) {
      bNextMatchInh = true;
    }
    bMatchPrev = bMatch;
  }
  if (dwRefIdx == strlen(s_acRefString)) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
