#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
const int mod = 1e9 + 7;
int main() {
  cout << fixed << setprecision(10);
  string s;
  cin >> s;
  string t = "keyence";
  int cnt = 0;
  int itr = 0;
  int pre = 0;
  for (int i = 0; i < (int(s.size())); i++) {
    if (s[i] == t[itr]) {
      itr++;
      if (itr == t.size()) {
        if (i < s.size() - 1) cnt++;
        break;
      }
      pre = 0;
    } else {
      if (pre == 0) {
        cnt++;
        pre ^= 1;
      }
    }
  }
  if (cnt < 2 && itr == int(t.size()))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
