#include <bits/stdc++.h>
using namespace std;
int main() {
  string keyence = "keyence";
  string s;
  cin >> s;
  bool flag = false;
  int j = 0;
  for (int i = 0; i < 7; i++) {
    if (s[i + j] == keyence[i]) {
      continue;
    } else {
      if (flag) {
        cout << "NO" << endl;
        return 0;
      } else {
        while (j < s.length() - i) {
          j++;
          if (s[i + j] == keyence[i]) {
            break;
          }
          if (i + j == s.length() - 1) {
            cout << "NO" << endl;
            return 0;
          }
        }
        flag = true;
      }
    }
  }
  cout << "YES" << endl;
}
