#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e17;
const int MOD = 1e9 + 7;
string ans = "keyence";
string S;
int main(void) {
  cin >> S;
  int n = S.length();
  long long flag = 0;
  long long deflag = 0;
  for (int i = 0; i < n; i++) {
    if (ans[flag] == S[i]) {
      if (deflag == 1) {
        deflag = 2;
      }
      flag++;
    } else if (deflag <= 1)
      deflag = 1;
    else
      break;
    if (flag == 7) break;
  }
  if (flag == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
