#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  string keyence = "keyence";
  int N = S.size();
  int i = 0;
  string res = "NO";
  while (i <= N - 7) {
    while (i <= N - 7 && S[i] != 'k') i++;
    if (i == N - 6) break;
    int j = 1;
    while (j < 7 && S[i + j] == keyence[j]) j++;
    if (j == 7) {
      res = "YES";
      break;
    }
    int k = i + j;
    while (k <= N - 7 + j && S[k] != keyence[j]) k++;
    if (k == N - 6 + j) continue;
    if (S.substr(k, 7 - j) == keyence.substr(j)) {
      res = "YES";
      break;
    }
    i++;
  }
  cout << res << "\n";
  return 0;
}
