#include <bits/stdc++.h>
using namespace std;
int64_t modex(int64_t a, int b, int64_t p) {
  int64_t res = 1;
  a %= p;
  while (b > 0) {
    if (b & 1) res = (res * a) % p;
    a = (a * a) % p;
    b >>= 1;
  }
  return res;
}
int dx[] = {1, 0, -1, 0, 1, -1, -1, 1};
int dy[] = {0, 1, 0, -1, 1, 1, -1, -1};
string t = "keyence";
int dp[102][7];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  int n = s.length();
  for (int i = 1; i <= n; i++) {
    for (int j = 0; j < 7; j++) {
      dp[i][j] = dp[i - 1][j];
    }
    for (int j = 0; j < 7; j++) {
      if (j == 0) {
        if (s[i - 1] == t[j]) dp[i][j] = 1;
      } else {
        if (s[i - 1] == t[j] && dp[i][j - 1]) dp[i][j] = 1;
      }
    }
  }
  if (dp[n][6])
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
