#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int len = s.length();
  int count = 0;
  int a = -1;
  int b = -1;
  a = s.find("k");
  b = s.find("eyence");
  if (a >= 0 && b >= 0) {
    if (a < b) count = 1;
  }
  a = s.find("ke");
  b = s.find("yence");
  if (a >= 0 && b >= 0) {
    if (a < b) count = 1;
  }
  a = s.find("key");
  b = s.find("ence");
  if (a >= 0 && b >= 0) {
    if (a < b) count = 1;
  }
  a = s.find("keye");
  b = s.find("nce");
  if (a >= 0 && b >= 0) {
    if (a < b) count = 1;
  }
  a = s.find("keyen");
  b = s.find("ce");
  if (a >= 0 && b >= 0) {
    if (a < b) count = 1;
  }
  a = s.find("keyenc");
  b = s.find("e");
  if (a >= 0 && b >= 0) {
    if (a < b) count = 1;
  }
  a = s.find("keyence");
  if (a >= 0) count = 1;
  if (count == 0)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}
