#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int a = s.size();
  for (int i = 0; i < a - 6; i++) {
    for (int j = i + 1; j < a - 5; j++) {
      for (int k = j + 1; k < a - 4; k++) {
        for (int l = k + 1; l < a - 3; l++) {
          for (int m = l + 1; m < a - 2; m++) {
            for (int n = m + 1; n < a - 1; n++) {
              for (int o = n + 1; o < a; o++) {
                if (s[i] == 'k' && s[j] == 'e' && s[k] == 'y' && s[l] == 'e' &&
                    s[m] == 'n' && s[n] == 'c' && s[o] == 'e') {
                  cout << "YES" << endl;
                  return 0;
                }
              }
            }
          }
        }
      }
    }
  }
  cout << "NO" << endl;
}
