#include <bits/stdc++.h>
using namespace std;
int main() {
  int f = 0;
  string s;
  cin >> s;
  if (s.find("k") != -1)
    f = 1;
  else if (s.find("k") != -1 && s.find("eyence") != -1)
    f = 1;
  else if (s.find("ke") != -1 && s.find("yence") != -1)
    f = 1;
  else if (s.find("key") != -1 && s.find("ence") != -1)
    f = 1;
  else if (s.find("keye") != -1 && s.find("nce") != -1)
    f = 1;
  else if (s.find("keyen") != -1 && s.find("ce") != -1)
    f = 1;
  else if (s.find("keyenc") != -1) {
    int x = s.find("keyenc");
    if (s.find('e', x + 5) != -1) f = 1;
  }
  if (f == 1)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
