#include <bits/stdc++.h>
using namespace std;
char S[100];
char seikai[8] = "keyence";
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin.getline(S, 100);
  int count = 0;
  int dame = 0;
  bool flag = true;
  bool flag2 = false;
  for (int i = 0; i < 100; i++) {
    if (count == 0) {
      if (S[i] == seikai[0]) {
        count++;
        flag2 = true;
      } else {
        continue;
      }
    } else {
      if (count == 1) {
        if (flag2 && (S[i] == seikai[0])) {
          continue;
        } else {
          flag2 = false;
        }
      }
      if (flag2 && (S[i] == seikai[count - 1])) {
        continue;
      } else {
        flag2 = false;
      }
      if (S[i] == seikai[count]) {
        count++;
        flag = true;
        flag2 = true;
      } else {
        if (flag) {
          dame++;
        }
        flag = false;
      }
    }
    if (dame >= 2) {
      cout << "NO" << endl;
      return 0;
    }
    if (count >= 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
