#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  string reals = s;
  int n = s.length();
  bool flag = false;
  for (int i = (0); i < (8); i++) {
    for (int j = (i); j < (n - i); j++) {
      if (s.substr(0, i) + s.substr(j, 7 - i) == "keyence") {
        flag = true;
        break;
      }
    }
  }
  if (flag == true)
    cout << ("YES") << endl;
  else if (flag == false)
    cout << ("NO") << endl;
  return 0;
}
