#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  string S;
  cin >> S;
  string T = "keyence";
  int j = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == T[j]) {
      j++;
    }
    if (j == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
