#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  string s;
  string t = "keyence";
  cin >> s;
  int f = 0;
  for (auto c : s) {
    if (c == t[f]) f++;
    if (f == t.size()) break;
  }
  cout << ((f == t.size()) ? "YES" : "NO") << endl;
  ;
  return 0;
}
