#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  for (int i = 0; i < s.size() - 6; i++) {
    int cnt;
    if (s[i] == 'k') {
      cnt = 1;
      if (s[i + 1] == 'e') {
        cnt++;
        if (s[i + 2] == 'y') {
          cnt++;
          if (s[i + 3] == 'e') {
            cnt++;
            if (s[i + 4] == 'n') {
              cnt++;
              if (s[i + 5] == 'c') {
                cnt++;
                if (s[i + 6] == 'e') {
                  cout << "YES" << endl;
                  return 0;
                }
              }
            }
          }
        }
      }
    }
    for (int j = i + cnt + 1; j < s.size() - (7 - cnt); j++) {
      if (s.substr(j, 8 - cnt) == k.substr(cnt + 1)) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
