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