#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int flag = 0;
  if (s == "keyence") {
    printf("YES\n");
    return 0;
  }
  for (int i = 0; i < s.length(); i++) {
    for (int j = i; j < s.length(); j++) {
      string s1 = s;
      s1.erase(i, j + 1);
      if (s1 == "keyence") {
        flag = 1;
        break;
      }
    }
    if (flag) break;
  }
  if (flag)
    printf("YES\n");
  else
    printf("NO\n");
}
