#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<char> a(7);
  bool ans = false;
  int num;
  for (int i = 1; i < 7; i++) {
    for (int j = 0; j < s.size() - 6; j++) {
      for (int k = 0; k < i; k++) {
        a.at(k) = s.at(j + k);
      }
      for (int k = i + j; k < s.size() - 6 + i; k++) {
        for (int l = 0; l < 7 - i; l++) {
          a.at(i + l) = s.at(k + l);
        }
        if (a.at(0) == 'k' && a.at(1) == 'e' && a.at(2) == 'y' &&
            a.at(3) == 'e' && a.at(4) == 'n' && a.at(5) == 'c' &&
            a.at(6) == 'e')
          ans = true;
        if (ans) break;
      }
      if (ans) break;
    }
    if (ans) break;
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
