#include <bits/stdc++.h>
using namespace std;
void fastIO() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
}
int main() {
  fastIO();
  string s;
  cin >> s;
  for (int i = 0; i < s.length() - 1; i++) {
    for (int j = i; j < s.length() - 1; j++) {
      string test = s;
      test.erase(test.begin() + i, test.begin() + j);
      if (test == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
