#include <bits/stdc++.h>
using namespace std;
long long inf = 100000000;
int main() {
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    for (int j = i + 1; j < s.size() - 1; j++) {
      string a = s;
      if (a == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
      a.erase(i, j);
      if (a == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
