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