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