#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  bool judge = false;
  cin >> s;
  for (int i = 0; i < 101; i++) {
    if (s[i] == 'k' && s[i + 1] == 'e' && s[i + 2] == 'y') {
      for (int j = 1; j < 101 - i; j++) {
        if (s[i + 2 + j] == 'e' && s[i + 2 + j + 1] == 'n' &&
            s[i + 2 + j + 2] == 'c' && s[i + 2 + j + 3] == 'e') {
          if (s[i + 2 + j + 4] == '\0' && s[0] == 'k') judge = true;
          break;
          if (j == 1 && s[i + 2 + j + 4] == '\0') judge = true;
          break;
          if (j == 1 && s[0] == 'k') judge = true;
          break;
        }
      }
    }
    if (judge == true) break;
  }
  if (judge)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
