#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int n = str.length();
  int f1 = 0, f2 = 0, f3 = 0;
  string k = "keyence";
  cout << k << endl;
  int j = 0;
  for (int i = 0; i < n; i++) {
    if (str[i] == k[j]) {
      j++;
      if (f1 == 1) {
        f2 = 1;
      }
    } else {
      f1 = 1;
      if (f2 == 1) {
        f3 = 1;
      }
    }
  }
  if (f3 == 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
