#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int N = S.length();
  string A = "keyence";
  int ans = 0;
  int j = 0;
  for (int i = 0; i < 7; i++) {
    while (j < N) {
      if (S.substr(j, 1) == A.substr(i, 1)) {
        ans++;
        j++;
        break;
      }
      j++;
    }
  }
  if (ans == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
