#include <bits/stdc++.h>
using namespace std;
struct test_t {
  long long target;
  long long state;
  long long diff;
};
int main() {
  string sample = "keyence";
  string in;
  int pass = 0;
  bool zwei = false;
  cin >> in;
  int s = 0;
  if (in[0] == sample[0] && in[1] == sample[1] && in[2] == sample[2] &&
      in[3] == sample[3] && in[4] == sample[4] && in[5] == sample[5] &&
      in[6] == sample[6]) {
    std::cout << "YES" << endl;
    return 0;
  }
  if (in[0] == sample[0] && in[1] == sample[1] && in[2] == sample[2] &&
      in[3] == sample[3] && in[4] == sample[4] && in[5] == sample[5] &&
      in[in.length() - 1] == sample[6]) {
    std::cout << "YES" << endl;
    return 0;
  }
  if (in[0] == sample[0] && in[1] == sample[1] && in[2] == sample[2] &&
      in[3] == sample[3] && in[4] == sample[4] &&
      in[in.length() - 2] == sample[5] && in[in.length() - 1] == sample[6]) {
    std::cout << "YES" << endl;
    return 0;
  }
  if (in[0] == sample[0] && in[1] == sample[1] && in[2] == sample[2] &&
      in[3] == sample[3] && in[in.length() - 3] == sample[4] &&
      in[in.length() - 2] == sample[5] && in[in.length() - 1] == sample[6]) {
    std::cout << "YES" << endl;
    return 0;
  }
  if (in[0] == sample[0] && in[1] == sample[1] && in[2] == sample[2] &&
      in[in.length() - 4] == sample[3] && in[in.length() - 3] == sample[4] &&
      in[in.length() - 2] == sample[5] && in[in.length() - 1] == sample[6]) {
    std::cout << "YES" << endl;
    return 0;
  }
  if (in[0] == sample[0] && in[1] == sample[1] &&
      in[in.length() - 5] == sample[2] && in[in.length() - 4] == sample[3] &&
      in[in.length() - 3] == sample[4] && in[in.length() - 2] == sample[5] &&
      in[in.length() - 1] == sample[6]) {
    std::cout << "YES" << endl;
    return 0;
  }
  if (in[0] == sample[0] && in[in.length() - 6] == sample[1] &&
      in[in.length() - 5] == sample[2] && in[in.length() - 4] == sample[3] &&
      in[in.length() - 3] == sample[4] && in[in.length() - 2] == sample[5] &&
      in[in.length() - 1] == sample[6]) {
    std::cout << "YES" << endl;
    return 0;
  }
  if (in[in.length() - 7] == sample[0] && in[in.length() - 6] == sample[1] &&
      in[in.length() - 5] == sample[2] && in[in.length() - 4] == sample[3] &&
      in[in.length() - 3] == sample[4] && in[in.length() - 2] == sample[5] &&
      in[in.length() - 1] == sample[6]) {
    std::cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < in.length(); ++i) {
    if (in[i] == sample[s]) {
      ++s;
      zwei = false;
    } else if (zwei == false) {
      if (in[i + 1] != sample[s]) {
        ++pass;
      }
      zwei = true;
    }
    if (s == 7 && i == in.length() - 1) {
      std::cout << "YES" << endl;
      return 0;
    }
    if (1 < pass) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
  return 0;
}
