#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int check = 0;
string c = "keyence", test;
int main() {
  cin >> test;
  for (int i = 0; i < (int)(test.length()); i++) {
    if (test[i] == c[check]) {
      check++;
    }
    if (check == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
