#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int inf = 1e9;
const long long INF = 1e18;
const double pi = 3.14159265358979323846;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  bool chk = 0;
  for (int i = 0; i < n - 6; i++) {
    for (int j = i + 1; j < n; j++) {
      if (j < n - 5)
        if (s[i] == 'k' && s.substr(j, 6) == "eyence") chk = 1;
      if (j < n - 4)
        if (s.substr(i, 2) == "ke" && s.substr(j, 5) == "yence") chk = 1;
      if (j < n - 3)
        if (s.substr(i, 3) == "key" && s.substr(j, 4) == "ence") chk = 1;
      if (j < n - 2)
        if (s.substr(i, 4) == "keye" && s.substr(j, 3) == "nce") chk = 1;
      if (j < n - 1)
        if (s.substr(i, 5) == "keyen" && s.substr(j, 2) == "ce") chk = 1;
      if (s.substr(i, 6) == "keyenc" && s.substr(j, 1) == "e") chk = 1;
    }
  }
  if (chk)
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
}
