#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  int leftsum = 0;
  for (int i = 0; i < key.length(); i++) {
    if (key[i] == S[i]) {
      leftsum++;
    } else {
      break;
    }
  }
  int rightsum = 0;
  for (int i = 0; i < key.length(); i++) {
    if (key[key.length() - 1 - i] == S[S.length() - 1 - i]) {
      rightsum++;
    } else {
      break;
    }
  }
  if (leftsum + rightsum == key.length()) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
}
