#include <bits/stdc++.h>
using namespace std;
const string KEY = "keyence";
int main() {
  string S;
  cin >> S;
  bool ans = false;
  for (int i = 0; i < S.size(); ++i) {
    if (S[i] == KEY[0]) {
      for (int j = 0; j < KEY.size(); ++j) {
        if (S[i + j] != KEY[j]) goto fail0;
      }
      ans = true;
      break;
    fail0:;
    }
  }
  for (int l = 0; l < S.size() - 1; ++l) {
    for (int r = l + 1; r < S.size(); ++r) {
      for (int i = 0; i < S.size(); ++i) {
        if (l <= i && i <= r) continue;
        if (S[i] == KEY[0]) {
          for (int j = 0; j < KEY.size(); ++j) {
            if ((l <= (i + j) && (i + j) <= r) || S[i + j] != KEY[j])
              goto fail1;
          }
          ans = true;
          break;
        fail1:;
        }
      }
    }
  }
  cout << (ans ? "YES" : "NO") << endl;
}
