#include <bits/stdc++.h>
using namespace std;
const int INF = 999999999;
const int MOD = 1e9 + 7;
const double pi = 3.141592653589793238;
int mmon;
bool ise[10], mmmon;
int main() {
  string h, mon = "keyence";
  cin >> h;
  for (int i = 0; i < h.length(); ++i) {
    if (h[i] == 'k') {
      ise[0] = true;
    } else {
      mmmon = false;
      for (int j = 1; j < mon.length(); ++j) {
        if (h[i] == mon[j] && ise[j - 1] == true) {
          ise[j] = true;
          mmmon = true;
        }
      }
      if (!mmmon) {
        ++mmon;
      }
    }
  }
  if (mmon >= 3) {
    cout << "NO" << endl;
    return 0;
  }
  for (int i = 0; i < mon.length(); ++i) {
    if (ise[i] == false) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
}
