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