#include <bits/stdc++.h>
using namespace std;
char s[105];
char pd[15] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
int a, b, c, x, y;
int main() {
  gets(s);
  a = strlen(s);
  a--;
  if (s[0] == pd[0] && s[a] != pd[6]) {
    for (int i = 0; i <= 6; i++) {
      if (s[i] != pd[i]) {
        cout << "NO";
        return 0;
      }
    }
    cout << "YES";
  } else if (s[0] != pd[0] && s[a] == pd[6]) {
    for (int i = 0; i <= 6; i++) {
      if (s[a - i] != pd[6 - i]) {
        cout << "NO";
        return 0;
      }
    }
    cout << "YES";
  } else if (s[0] == pd[0] && s[a] == pd[6]) {
    for (int i = 0; i <= 15; i++) {
      if (s[x] == pd[x]) {
        x++;
      }
      if (x + y == 6) {
        cout << "YES";
        return 0;
      }
      if (s[a - y] == pd[6 - y]) {
        y++;
      }
      if (x + y == 6) {
        cout << "YES";
        return 0;
      }
    }
    cout << "NO";
  } else {
    cout << "NO";
  }
  return 0;
}
