#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s1 = "keyence";
  cin >> s;
  int x = s.size() - 7;
  for (int i = 0; i <= s.size(); i++) {
    if (s[i] != s1[i]) {
      if (s[i + 6] != s1[i + 1]) {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  cout << "YES" << endl;
  return 0;
}
