#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int main() {
  string S;
  cin >> S;
  int N = S.length();
  N--;
  const string K = "keyence";
  bool JD = false;
  if (S.find(K) != string::npos) {
    JD = true;
  } else {
    JD = false;
    for (int i = 1; i < 7; i++) {
      string L = S.substr(0, 7 - i);
      string R = S.substr(N - i, i);
      if (L + R == K) {
        JD = true;
        break;
      }
    }
  }
  cout << ((JD) ? "YES" : "NO") << endl;
}
