#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  int cut = 0, out = 0;
  if (s == key) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < (s.length()); ++i) {
    if (key[cut] == s[i]) {
      cut++;
      if (cut == 6) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
