#include <bits/stdc++.h>
using namespace std;
char m[8] = {'/', 'k', 'e', 'y', 'e', 'n', 'c', 'e'};
int main() {
  string s;
  int i = 0, p = 1, x = 1, l = 0;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    while (s[i] == m[p]) {
      p++;
      i++;
      if (p == 7) {
        cout << "YES";
        return 0;
      }
      if (s[i] != m[p]) {
        l++;
      }
      if (l > 2) {
        cout << "NO";
        return 0;
      }
    }
  }
  cout << "NO";
  return 0;
}
