#include <bits/stdc++.h>
using namespace std;
bool dp[101][8][3];
int main() {
  string s, t = "keyence";
  cin >> s;
  dp[0][0][0] = true;
  for (int i = 0; i < s.length(); ++i) {
    for (int j = 6; j >= 0; --j) {
      if (s[i] == t[j]) {
        dp[i + 1][j + 1][2] |= dp[i][j][2];
        dp[i + 1][j + 1][2] |= dp[i][j][1];
        dp[i + 1][j + 1][0] |= dp[i][j][0];
      } else {
        dp[i + 1][j][1] |= dp[i][j][0];
        dp[i + 1][j][1] |= dp[i][j][1];
      }
    }
  }
  for (int i = 0; i <= s.length(); ++i) {
    if (dp[i][7][0] || dp[i][7][2]) {
      printf("YES\n");
      return 0;
    }
  }
  printf("NO\n");
}
