#include <bits/stdc++.h>
using namespace std;
long long MOD = 1000000007;
signed main() {
  string s;
  cin >> s;
  string x = "keyence";
  long long n = s.size();
  for (long long i = 0; i <= n - 7; i++) {
    long long c = 1;
    long long cnt = 0;
    for (long long j = 0; j < (i); j++) {
      if (x[cnt] != s[j]) c = 0;
      cnt++;
    }
    for (long long j = 0; j < (7 - i); j++) {
      if (x[cnt] != s[j + i + n - 7]) c = 0;
      cnt++;
    }
    if (c) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
