#include <bits/stdc++.h>
using namespace std;
long long SI() {
  long long x;
  cin >> x;
  return x;
}
bool chk(string &s) {
  return (s.size() == 7 && s[0] == 'k' && s[1] == 'e' && s[2] == 'y' &&
          s[3] == 'e' && s[4] == 'n' && s[5] == 'c' && s[6] == 'e');
}
int main() {
  string s;
  cin >> s;
  long long n = s.size();
  for (int i = 0; i < n; i += 1) {
    for (int j = i; j < n; j += 1) {
      string temp = "";
      for (int x = 0; x < i; x += 1) {
        temp += s[x];
      }
      for (int x = j + 1; x < n; x += 1) {
        temp += s[x];
      }
      if (chk(temp)) {
        cout << "YES\n";
        return 0;
      }
    }
  }
  cout << "NO\n";
  return 0;
}
