#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
long long MOD = 998244353;
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  long long n = (long long)s.size();
  bool res;
  for (long long i = 0; i < 7; i++) {
    string t = s.substr(0, i);
    t = t + s.substr(n - (7 - i));
    if (t == "keyence") {
      res = true;
    }
  }
  if (s == "keyence") res = true;
  cout << (res ? "YES" : "NO") << '\n';
  ;
  return 0;
}
