#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const long long linf = 1e18;
const long long mod = 1e9 + 7;
int cnt[10];
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int cnt = 0;
  bool f1 = false, f2 = false;
  for (int i = 0; i < (int)(s.size()); i++) {
    if (s[i] == t[cnt]) {
      cnt++;
      if (f1) f2 = true;
    } else {
      if (f2) {
        cout << "NO" << endl;
        return 0;
      }
      f1 = true;
    }
  }
  if (cnt == t.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
