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