#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 1e9;
int main() {
  string S;
  cin >> S;
  string ans = "NO";
  int N = S.size();
  for (int i = 0; i < int(N + 1); ++i)
    for (int j = 0; j < int(N + 1); ++j) {
      string Sc = S;
      if (i <= j && i + j <= N - 1) {
        Sc.erase(Sc.begin() + i, Sc.begin() + j);
        if (Sc == "keyence") ans = "YES";
      }
    }
  cout << ans << endl;
}
