#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MOD = 1e9 + 7;
signed main() {
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (int left = 0; left < s.size(); left++) {
    for (int right = left + 1; right < s.size(); right++) {
      string t;
      for (int i = 0; i < (s.size()); i++) {
        if (!(i <= left || right <= i)) {
          continue;
        }
        t += s[i];
        if (t == "keyence") {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
}
