#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string word = "keyence";
  int s_idx = 0;
  int word_idx = 0;
  while (s_idx < s.length() && word_idx < word.length()) {
    if (s[s_idx] == word[word_idx]) {
      word_idx++;
    }
    s_idx++;
  }
  if (word_idx == word.length() && (word_idx == s_idx || s_idx == s.length())) {
    cout << "YES" << '\n';
  } else {
    cout << "NO" << '\n';
  }
  return 0;
}
