#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "0";
  cin >> s;
  string str_k = "keyence";
  int max_k = 1;
  string ans = "NO";
  for (int i = 0; i < s.size(); ++i) {
    if (s.substr(i, 1) == "k") {
      int j = i + 1;
      int k = 1;
      while (1) {
        if (s.substr(j, 1) == str_k.substr(k, 1)) {
          ++k;
          ++j;
          if (k == 6) {
            ans = "YES";
            cout << ans << endl;
            return 0;
          }
        } else {
          if (k > max_k) max_k = k;
          break;
        }
      }
    }
    cout << str_k.substr(max_k, 1) << endl;
    if (s.substr(i, 1) == str_k.substr(max_k, 1)) {
      int j = i + 1;
      int k = max_k + 1;
      while (1) {
        if (s.substr(j, 1) == str_k.substr(k, 1)) {
          ++k;
          ++j;
          if (k == 6) {
            ans = "YES";
            cout << ans << endl;
            return 0;
          }
        } else {
          break;
        }
      }
    }
  }
  cout << ans << endl;
  return 0;
}
