#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;
  int prev_s = -1;
  int skip = 0;
  while (s_idx < s.length() && word_idx < word.length()) {
    if (s[s_idx] == word[word_idx]) {
      word_idx++;
    } else {
      if (prev_s != -1 && prev_s + 1 != s_idx) {
        cout << "NO" << '\n';
        return 0;
      }
      prev_s = s_idx;
      skip++;
    }
    s_idx++;
  }
  if (word_idx == word.length() && (s_idx == s.length())) {
    cout << "YES" << '\n';
  } else {
    cout << "NO" << '\n';
  }
  return 0;
}
