#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int l = s.size(), n = 0;
  bool ans = false;
  for (int i = 0; i < l; i++) {
    if (s.substr(i, 7) == "keyence") {
      ans = true;
    } else if (s.substr(i, 6) == "keyenc") {
      for (int j = i + 6; j < n; j++) {
        if (s[j] == 'e') ans = true;
      }
    } else if (s.substr(i, 5) == "keyen") {
      for (int j = i + 5; j < n; j++) {
        if (s.substr(j, 2) == "ce") ans = true;
      }
    } else if (s.substr(i, 4) == "keye") {
      for (int j = i + 4; j < n; j++) {
        if (s.substr(j, 3) == "nce") ans = true;
      }
    } else if (s.substr(i, 3) == "key") {
      for (int j = i + 3; j < n; j++) {
        if (s.substr(j, 4) == "ence") ans = true;
      }
    } else if (s.substr(i, 2) == "ke") {
      for (int j = i + 2; j < n; j++) {
        if (s.substr(j, 5) == "yence") ans = true;
      }
    } else if (s[i] == 'k') {
      for (int j = i + 5; j < n; j++) {
        if (s.substr(j, 6) == "eyence") ans = true;
      }
    }
    if (s[i] != 'k' || s[i - 7] != 'k') ans = false;
  }
  if (ans == true)
    puts("YES");
  else
    puts("NO");
  return 0;
}
