#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string ans = "keyence";
  if (s == ans) {
    cout << "YES" << endl;
    return 0;
  }
  int n = s.size();
  for (int i = 0; i < n; i++) {
    for (int j = 0; i + j < n; j++) {
      string t = s.substr(0, i) + s.substr(i + j + 1, n - i - j　-　1);
      if (ans == t) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
