#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string key = "keyence";
  string s;
  int cnt = 0, now = 0;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != key[now]) {
      cnt++;
      while (i + 1 < s.size() && s[i + 1] != key[now]) i++;
    } else {
      now++;
    }
  }
  if (cnt < 2 && now == key.size())
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
  return 0;
}
