#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  string test = "keyence";
  string s;
  cin >> s;
  long long l = 0;
  while (l < test.size()) {
    if (s[l] == test[l]) {
      l++;
    } else {
      break;
    }
  }
  if (l == test.size()) {
    cout << "YES" << endl;
    return 0;
  }
  long long r = s.size() - 1;
  long long tr = test.size() - 1;
  while (r >= 0 && tr >= 0) {
    if (s[r] == test[tr]) {
      r--;
      tr--;
    } else {
      break;
    }
  }
  if (l >= tr) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
