#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int j, i, n, x = 0, y = 0, z = 0, t = 0, v = 0, q = 0, f = 0,
                         ans = 0;
  string s;
  cin >> s;
  n = s.size();
  for (i = 0; i < n; i++) {
    if (s.substr(i, i + 6) == "keyenc" && i < n - 6) {
      for (j = 0; j < n; j++)
        if ((s[j] == 'e' && j == i + 6) ||
            (s[j] == 'e' && j > i + 6 && j + 1 == n)) {
          cout << "YES";
          return 0;
        }
    } else if (s.substr(i, i + 5) == "keyen" && i < n - 5) {
      for (j = 0; j < n; j++)
        if (s.substr(j, j + 2) == "ce" && j + 2 == n) {
          cout << "YES";
          return 0;
        }
    } else if (s.substr(i, i + 4) == "keye" && i < n - 4) {
      for (j = 0; j < n; j++)
        if (s.substr(j, j + 3) == "nce" && j >= i + 4 && j + 3 == n) {
          cout << "YES";
          return 0;
        }
    } else if (s.substr(i, i + 3) == "key" && i < n - 3) {
      for (j = 0; j < n; j++)
        if (s.substr(j, j + 4) == "ence" && j >= i + 3 && j + 4 == n) {
          cout << "YES";
          return 0;
        }
    } else if (s.substr(i, i + 2) == "ke" && i < n - 2) {
      for (j = 0; j < n; j++)
        if (s.substr(j, j + 5) == "yence" && j >= i + 2 && j + 5 == n) {
          cout << "YES";
          return 0;
        }
    } else if (s[i] == 'k') {
      for (int j = 0; j < n; j++)
        if (s.substr(j, j + 6) == "eyence" && j >= i && j + 6 == n) {
          cout << "YES";
          return 0;
        }
    }
  }
  cout << "NO";
  return 0;
}
