#include <bits/stdc++.h>
using namespace std;
template <typename T>
void show(T a) {
  for (auto i : a) {
    cout << i << " ";
  }
  cout << endl;
}
int main(int argc, char* argv[]) {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  string str;
  cin >> str;
  string key = "keyence";
  int i = 0;
  bool flg = true;
  for (char& j : key) {
    if (str[i++] == j) {
      continue;
    }
    if (flg) {
      flg = !flg;
      while (i != str.size()) {
        if (str[i++] == j) {
          break;
        }
      }
    } else {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (i == str.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
