#include <bits/stdc++.h>
using namespace std;
string str;
string ans("keyence");
string Remove(int Begin, int len) {
  return str.substr(0, Begin) + str.substr(Begin + len);
}
int main() {
  ios::sync_with_stdio(false);
  while (cin >> str) {
    if (str == ans) {
      cout << "YESS" << endl;
      continue;
    }
    int len = str.length();
    bool flag = false;
    for (int i = 0; i < len; ++i) {
      for (int j = 1; i + j - 1 < len; ++j) {
        if (Remove(i, j) == ans) {
          flag = true;
          break;
        }
      }
    }
    if (flag) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
