#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, y;
  cin >> s;
  y = "keyence";
  int j = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == y[j]) {
      j++;
    }
  }
  if (j == y.size()) {
    cout << "YES";
  } else
    cout << "NO";
}
