#include <bits/stdc++.h>
using namespace std;
int main() {
  int count = 0, flag = 0;
  string s, k;
  cin >> s;
  if (s.length() < 7 || s.length() > 100) {
    cout << "NO";
    return 0;
  }
  k = "keyence";
  for (int j = 0; j < k.length(); j++) {
    for (int i = 0; i < s.length(); i++) {
      if (k[j] == s[i]) {
        count++;
        j++;
        if (flag == 1) flag = 2;
      } else {
        if (flag == 2) {
          cout << "NO";
          return 0;
        }
        flag = 1;
      }
    }
  }
  if (count == 7) {
    cout << "YES";
  } else
    cout << "NO";
}
