#include <bits/stdc++.h>
using namespace std;
string str, expe = "keyence";
bool ans = false;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  cin >> str;
  for (int i = 0; i < 8; i++) {
    if (str.find(expe.substr(0, 7 - i)) != -1 &&
        str.find(expe.substr(7 - i, i)) != -1 &&
        str.find(expe.substr(0, 7 - i)) < str.find(expe.substr(7 - i, i))) {
      ans = true;
    }
  }
  if (ans)
    cout << "YES\n";
  else
    cout << "NO\n";
}
