#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int now = 0;
  vector<bool> wrong(s.length(), false);
  bool firstWrong = true;
  for (int i = 0; i < (int)s.length(); i++) {
    if (s[i] == k[now]) {
      now++;
    } else {
      wrong[i] = true;
      if (firstWrong != true && wrong[i - 1] != true) {
        cout << "NO" << endl;
        return 0;
      }
      firstWrong = false;
    }
  }
  cout << "YES" << endl;
}
