#include <bits/stdc++.h>
using namespace std;
vector<vector<string>> getinputdata();
vector<vector<int>> getinputdata2();
vector<vector<double>> getinputdata3();
int searchword(string s, string word, int sposi) {
  int posi = 0;
  if (s.find(word, sposi) >= 0) {
    posi = s.find(word, sposi) + 1;
  }
  return posi;
}
void keyence2019_b(vector<vector<string>> v) {
  string s = v[0][0];
  int sposi = 0;
  bool chkflg = true;
  if (searchword(s, "k", sposi) == 0) {
    chkflg = false;
  } else {
    sposi = searchword(s, "k", sposi);
  }
  if (searchword(s, "e", sposi) == 0) {
    chkflg = false;
  } else {
    sposi = searchword(s, "e", sposi);
  }
  if (searchword(s, "y", sposi) == 0) {
    chkflg = false;
  } else {
    sposi = searchword(s, "y", sposi);
  }
  if (searchword(s, "e", sposi) == 0) {
    chkflg = false;
  } else {
    sposi = searchword(s, "e", sposi);
  }
  if (searchword(s, "n", sposi) == 0) {
    chkflg = false;
  } else {
    sposi = searchword(s, "n", sposi);
  }
  if (searchword(s, "c", sposi) == 0) {
    chkflg = false;
  } else {
    sposi = searchword(s, "c", sposi);
  }
  if (searchword(s, "e", sposi) == 0) {
    chkflg = false;
  } else {
    sposi = searchword(s, "e", sposi);
  }
  cout << (chkflg ? "YES" : "NO") << endl;
}
int main() {
  vector<vector<string>> vec_arr_result;
  vec_arr_result = getinputdata();
  keyence2019_b(vec_arr_result);
  return 0;
}
vector<vector<double>> getinputdata3() {
  string str;
  string ret;
  stringstream ss;
  vector<string> v1;
  vector<vector<double>> vec_arr;
  while (getline(cin, str)) {
    v1.push_back(str);
  }
  for (string s : v1) {
    vector<double> array_data;
    ss << s;
    while (!ss.eof()) {
      ss >> ret;
      array_data.push_back(atof(ret.c_str()));
    }
    vec_arr.push_back(array_data);
    ss.str("");
    ss.clear(stringstream::goodbit);
  }
  return vec_arr;
}
vector<vector<int>> getinputdata2() {
  string str;
  string ret;
  stringstream ss;
  vector<string> v1;
  vector<vector<int>> vec_arr;
  while (getline(cin, str)) {
    v1.push_back(str);
  }
  for (string s : v1) {
    vector<int> array_data;
    ss << s;
    while (!ss.eof()) {
      ss >> ret;
      array_data.push_back(atoi(ret.c_str()));
    }
    vec_arr.push_back(array_data);
    ss.str("");
    ss.clear(stringstream::goodbit);
  }
  return vec_arr;
}
vector<vector<string>> getinputdata() {
  string str;
  string ret;
  stringstream ss;
  vector<string> v1;
  vector<vector<string>> vec_arr;
  while (getline(cin, str)) {
    v1.push_back(str);
  }
  for (string s : v1) {
    vector<string> array_data;
    ss << s;
    while (!ss.eof()) {
      ss >> ret;
      array_data.push_back(ret);
    }
    vec_arr.push_back(array_data);
    ss.str("");
    ss.clear(stringstream::goodbit);
  }
  return vec_arr;
}
