#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, yang = "keyence";
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] != yang[i]) {
      s.erase(i, 1);
      for (int j = i; j < s.length(); j++) {
        if (s[j] != yang[j]) {
          s.erase(j, 1);
          j--;
        } else
          break;
      }
      break;
    }
  }
  if (yang == s) {
    cout << "YES\n";
  } else
    cout << "NO\n";
  return 0;
}
