#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, k = "keyence";
  cin >> s;
  int now = 0, a = 0, next = 0, l = 0;
  for (long long i = 0; i < (s.size()); i++) {
    if (s[i] == k[now]) {
      next = i + 1;
      now++;
    } else if (now != 0 && next == i)
      a++;
  }
  if (a < 2 && now == 7)
    cout << "YES";
  else
    cout << "NO";
}
