#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int emp = 0, flag = 0, j = 0;
  string keyence = "keyence";
  cin >> str;
  string sub = str.substr(0, 7);
  if (keyence == sub) {
    cout << "YES\n";
    return 0;
  }
  sub = str.substr(str.length() - 7);
  if (keyence == sub) {
    cout << "YES\n";
    return 0;
  }
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == keyence[j]) {
      j++;
      flag = 0;
    } else {
      if (!flag) {
        if (!emp) {
          sub = str.substr(str.length() - (7 - i));
          string key_sub = str.substr(keyence.length() - (7 - i));
          if (sub == keyence) {
            cout << "YES\n";
            return 0;
          }
        }
        emp++;
        flag = 1;
      }
    }
  }
  if (j == 7 && emp <= 1) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
