#include <bits/stdc++.h>
using namespace std;
string s, t = "keyence";
int i = 0;
int main(void) {
  cin >> s;
  for (auto x : s) {
    if (x == t[i]) i++;
  }
  if (i == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
