#include <bits/stdc++.h>
using namespace std;
string keyence = "keyence";
int main() {
  string S;
  cin >> S;
  int key = 0;
  int judge = 0;
  bool same = true;
  int ans = 0;
  if (S[0] != 'k') same = false;
  ;
  for (int i = 0; i < (int)(S.size()); i++) {
    if (S[i] == keyence[key]) {
      if (same) {
        if (key != 6)
          key++;
        else
          ans++;
      } else {
        judge++;
        key++;
        same = true;
      }
    } else {
      if (same) {
        judge++;
        same = false;
      } else {
      }
    }
  }
  if (ans && judge < 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
