#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  if ((int)S.find("keyence") != -1) {
    cout << "YES"
         << "\n";
  } else {
    string key = "keyence";
    for (int i = 1; i <= 6; ++i) {
      if (S.substr(0, i) == key.substr(0, i) &&
          S.substr(S.length() - i, 7 - i) ==
              key.substr(key.length() - i, 7 - i)) {
        cout << "YES"
             << "\n";
        return 0;
      }
    }
    cout << "NO"
         << "\n";
  }
  return 0;
}
