#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 2147483647;
int main() {
  string s;
  cin >> s;
  string correct = "keyence";
  int c_num = correct.size();
  int j = 0;
  bool can = false;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == correct[j]) {
      j++;
    }
    if (j == c_num) {
      can = true;
      break;
    }
  }
  if (can)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
