#include <bits/stdc++.h>
using namespace std;
int main() {
  string ans = "YES", chk = "keyence", s;
  cin >> s;
  int cnt = 0, now = 0;
  for (int i = 0; i < chk.size(); i++) {
    for (int j = now; j < s.size(); j++) {
      now++;
      if (s[j] == chk[i]) {
        cnt += 1;
        break;
      }
    }
  }
  if (cnt != chk.size()) ans = "NO";
  cout << ans << endl;
}
