#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string g = "keyence";
  int i = 0;
  int j = 0;
  while (i < g.length() && j < s.length()) {
    if (s[j] == g[i]) {
      i++;
      j++;
    } else {
      j++;
    }
  }
  if (i == g.length()) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
