#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[7] = {0};
  const string k = "keyence";
  string s;
  cin >> s;
  int j = 0;
  for (int i = 0; i < s.size(); i++) {
    if (j >= 7) break;
    if (s[i] == k[j]) {
      a[j] = i;
      ++j;
    }
  }
  string ans = "YES";
  for (int i = 0; i <= 5; i++) {
    if (a[i] >= a[i + 1]) {
      ans = "NO";
      break;
    }
  }
  cout << ans << endl;
  return 0;
}
