#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[102];
  int na[100];
  char c[] = "keyence";
  cin >> s;
  int j = 0, k = 0;
  if (s[0] == c[0]) {
    j++;
    na[0] == 1;
  } else {
    na[0] == 0;
    k++;
  }
  for (int i = 1; i < 100; i++) {
    if (s[i] == c[j]) {
      na[i] == 1;
      j++;
    } else {
      na[i] == 0;
      if (na[i - 1] == 1) k++;
    }
    if (k == 2) break;
    if (j == 7) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
}
