#include <bits/stdc++.h>
using namespace std;
const string keyence = "keyence";
int main() {
  string S;
  cin >> S;
  int l = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == 'k') {
      for (int j = 1; j <= keyence.size(); j++) {
        if (i + j > S.size()) break;
        if (S.substr(i, j) == keyence.substr(0, j)) {
          l = max(l, j);
        }
      }
      if (l == keyence.size()) {
        cout << "YES" << endl;
        return 0;
      }
    }
    for (int j = 1; j < keyence.size(); j++) {
      if (i + keyence.size() - j > S.size()) continue;
      if (S.substr(i, keyence.size() - j) == keyence.substr(j)) {
        if (l + keyence.size() - j >= keyence.size()) {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
