#include <bits/stdc++.h>
using namespace std;
long long INF = 1e9 + 7;
;
long long dx[4] = {1, 0, -1, 0};
long long dy[4] = {0, 1, 0, -1};
long long dp[55][55][5000];
signed main() {
  string S;
  cin >> S;
  string T = "keyence";
  long long X = 0;
  for (long long i = 0; i < S.size(); i++) {
    if (S[i] == T[X]) {
      X++;
    }
    if (X == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
