#include <bits/stdc++.h>
using namespace std;
const int inf = 1001001000;
const long long INF = 1LL << 60;
const int MOD = (int)1e9 + 7;
int main() {
  string s;
  cin >> s;
  bool ans = false;
  string t = s.substr(0, 7);
  if (t == "keyence") ans = true;
  t = s.substr(s.size() - 7, 7);
  if (t == "keyence") ans = true;
  t = s.substr(0, 3);
  string tt = s.substr(s.size() - 4, 4);
  if (t == "key" && tt == "ence") ans = true;
  cout << ((ans) ? "YES" : "NO") << endl;
  return 0;
}
