#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, adds = "keyence";
  cin >> s;
  int cnt = 0, fail = 0, flag = 0, first = 0, counter_fails = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == adds[cnt])
      cnt++;
    else {
      if (first == 0) {
        fail = i;
        first = 1;
      } else {
        if (fail + 1 == i)
          fail = i;
        else
          counter_fails++;
      }
    }
    if (cnt == adds.length()) {
      flag = 1;
      break;
    }
  }
  if (counter_fails == 0 && flag == 1)
    cout << "YES" << endl;
  else if (fail > 1)
    cout << "NO" << endl;
  return 0;
}
