#include <bits/stdc++.h>
using namespace std;
bool sort_by(pair<int, int> c, pair<int, int> d) { return c.second < d.second; }
int main() {
  string second, ans = "NO", keyence = "keyence";
  cin >> second;
  int lk = (int)keyence.size();
  int ls = 0, lr = 0;
  while (ls < lk && second[ls] == keyence[ls]) ++ls;
  reverse(keyence.begin(), keyence.end());
  reverse(second.begin(), second.end());
  if (ls != lk) {
    while (lr < lk && second[lr] == keyence[lr]) ++lr;
    if (lr + ls == lk) ans = "YES";
  } else
    ans = "YES";
  cout << ans;
}
