#include <bits/stdc++.h>
using namespace std;
string s;
char a[100] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
signed main() {
  long long x = 0;
  cin >> s;
  for (long long i = 0; i < s.length(); i++) {
    if (a[x] == s[i]) {
      x++;
    }
  }
  if (x >= 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
