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