#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string X = "keyence";
  bool exist = false;
  for (int i = 0; i < S.size(); i++) {
    if (S.at(i) != X.at(i)) {
      break;
    }
    if (i == 6) {
      exist = true;
      break;
    }
  }
  int j_c = 0;
  for (int j = S.size() - 7; j < S.size(); j++) {
    if (S.at(j) != X.at(j_c)) {
      break;
    }
    if (j == S.size() - 1) {
      exist = true;
      break;
    }
    j_c++;
  }
  int change = 0;
  int count = 0;
  bool cha = true;
  if (exist == false) {
    for (int k = 0; k < S.size(); k++) {
      if (cha) {
        if (S.at(k) != X.at(k)) {
          change = k;
          cha = false;
        } else {
          count++;
        }
      } else {
        if (S.at(k) == X.at(change)) {
          change++;
          count++;
        }
      }
    }
    if (count == 7) {
      exist = true;
    }
  }
  if (exist) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
