#include <bits/stdc++.h>
using namespace std;
long long i[300000];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long a, b, c, d = 0, e = 0;
  string s, u = "keyence";
  cin >> s;
  for (int n = 0; n < s.size(); n++) {
    if (s[n] != u[e] && d == 0) {
      for (int m = n + 1; m < s.size(); m++) {
        n++;
        if (s[m] == u[e]) {
          d++, e++;
          break;
        }
      }
    } else if (s[n] == u[e])
      e++;
    if (e == 7) break;
  }
  if (e == 7)
    cout << "YES\n";
  else
    cout << "NO\n";
  return (0);
}
