#include <bits/stdc++.h>
using namespace std;
const char* key = "keyence";
const int keylen = 7;
int main() {
  string str;
  cin >> str;
  int f, b;
  for (f = 0; key[f] == str.at(f); f++)
    ;
  for (b = 0; key[keylen - b - 1] == str.at(str.length() - b - 1); b++)
    ;
  cout << ((f + b) >= keylen ? "YES" : "NO") << endl;
}
