#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string key = "keyence";
  int j = 0, co, coi;
  for (int i = 0; i < s.size() - 6; i++) {
    for (int k = (0); k < (8); ++k) {
      if (s[i + k] != key[k]) {
        break;
      }
      if (k == 6) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  for (int i = 0; i < 7; i++) {
    if (s[i] == key[i]) {
      j = i + 1;
      while (j < s.size() - i) {
        for (int k = (i + 1); k < (8 - i); ++k) {
          if (s[j + k] != key[k]) break;
          if (i + k == 6) {
            cout << "YES" << endl;
            return 0;
          }
        }
        j++;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
