#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 length = strlen(S);
  int count = 0;
  int dame = 0;
  bool flag = true;
  bool result = true;
  for (int i = 0; i < length; i++) {
    if (S[i] == seikai[count]) {
      count++;
      flag = true;
    } else {
      if (flag) {
        dame++;
      }
      flag = false;
    }
    if (dame >= 2) {
      result = false;
      break;
    }
    if (i == length - 1) {
      result = false;
    }
  }
  if (result) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
