#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  int l = s.length();
  string temp = "keyence";
  int l1 = temp.length();
  int p = 0;
  int last = 0;
  int gap = 0;
  int flag = 1;
  int ans = 0;
  for (int i = 0; i < l; i++) {
    p = 0;
    for (int j = i; j < l; j++) {
      if (s[j] == temp[p]) {
        p++;
        if (j - last > 1) {
          if (gap == 0) {
            gap = 1;
          } else {
            flag = 0;
            break;
          }
        }
        last = j;
      }
      if (p >= l1) {
        if (j != l - 1 && gap) {
          break;
        }
        ans = 1;
        break;
      }
    }
    if (ans) {
      printf("YES");
      return 0;
    }
  }
  printf("NO");
}
