#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  string reals = s;
  int n = s.length();
  int ans = 0;
  for (int i = (1); i < (n); i++) {
    for (int j = 1; j <= (n - i); j++) {
      s.erase(i, j);
      if (s == "keyence") {
        ans = 1;
        break;
      } else {
        s = reals;
      }
    }
  }
  if (ans == 1)
    cout << ("YES") << endl;
  else
    cout << ("NO") << endl;
  return 0;
}
