#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int L = S.size();
  if (L == 7) {
    if (S == "keyence")
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else {
    string ans = "NO";
    for (int i = 0; i < L - 7; i++) {
      string T = S;
      T.erase(T.begin() + i, T.begin() + i + L - 7);
      if (T == "keyence") ans = "YES";
    }
    cout << ans << endl;
  }
}
