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