#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, key = "keyence";
  cin >> s;
  int n = s.size(), i = 0, j = 0, k = 0;
  while (i < n) {
    if (k == 0) {
      if (s[i] == key[j]) {
        i++;
        j++;
      } else {
        i++;
        k++;
      }
    } else if (k == 1) {
      if (s[i] == key[j]) {
        i++;
        j++;
        k++;
      } else {
        i++;
      }
    } else if (k == 2) {
      if (s[i] == key[j]) {
        i++;
        j++;
      } else {
        cout << "NO" << endl;
        return 0;
      }
    }
    if (j == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
