#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  string comp = "keyence";
  cin >> S;
  if (S[0] == 'k') {
    for (int i = 1; i < 7; i++) {
      if (comp[i] != S[i]) {
        int pos = S.find(&comp[i], i);
        if (pos >= 0 && pos + 7 - i == S.length()) {
          cout << "YES";
        } else {
          cout << "NO";
        }
        return 0;
      }
    }
    cout << "YES";
  } else {
    int pos = S.find("keyence", 1);
    if (pos >= 0 && pos + 8 == S.length()) {
      cout << "YES";
    } else {
      cout << "NO";
    }
  }
  return 0;
}
