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