#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, l = "keyence";
  cin >> s;
  if (s == l) {
    cout << "YES" << endl;
    return 0;
  }
  int count = 0;
  for (int i = 0; i < (s.size()); ++i) {
    if (s[i] == l[count]) {
      count++;
    } else {
      break;
    }
  }
  int num = count;
  for (int i = count; i < s.size(); i++) {
    if (s[i] == l[count]) {
      count++;
    } else {
      if (num != count) {
        cout << "NO" << endl;
        return 0;
      }
    }
    if (count == l.size()) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
