#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  string A = "keyence";
  int j = 0, jj = 0;
  int b = 0;
  int f = 0;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == A[j] && j < 7) {
      j++;
      if (f == 1) f = 2;
    } else {
      jj++;
      if (f == 2) {
        cout << "NO" << endl;
        return 0;
      }
      f = 1;
    }
  }
  if (j == 7 && j + jj == str.length())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
