#include <bits/stdc++.h>
using namespace std;
string S, key = "keyence";
bool flag = false, done = false, memo = 0, db = false;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> S;
  for (int i = (0); i < (S.size()); ++i) {
    if (S[i] == 'k') {
      int c = 1;
      for (int j = (i + 1); j < (S.size()); ++j) {
        if (c >= key.size()) break;
        if (c == key.size() - 1 && S[j] == key[c]) {
          flag = true;
          break;
        } else if (S[j] == key[c]) {
          c++;
        } else {
          string str = key.substr(c);
          int pos = S.find(str);
          if (S[pos] == key[c]) {
            flag = true;
          }
          break;
        }
      }
    }
  }
  if (flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
