#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
const long long longinf = 1LL << 60;
const long long mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  bool ans = false;
  string t = "keyence";
  for (int i = 0; i + 6 < s.size(); i++) {
    for (int j = (int)0; j < (int)7; ++j) {
      bool ok = true;
      for (int k = (int)0; k < (int)j; ++k) {
        if (s[i + k] != t[k]) ok = false;
      }
      if (ok) {
        for (int l = i + j; l + (7 - j) <= s.size(); l++) {
          bool ok2 = true;
          for (int n = 0; n < 7 - j; n++) {
            if (s[l + n] != t[j + n]) ok2 = false;
          }
          if (ok2 == true) ans = true;
        }
      }
    }
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
