#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int end = s.size() - 1;
  if ((s[0] == 'k' && s[1] == 'e' && s[2] == 'y') &&
      (s[end - 3] == 'e' && s[end - 2] == 'n' && s[end - 1] == 'c' &&
       s[end] == 'e')) {
    cout << "YES" << endl;
    return 0;
  } else if ((s[0] == 'k' && s[1] == 'e' && s[2] == 'y') &&
             (s[3] == 'e' && s[4] == 'n' && s[5] == 'c' && s[6] == 'e')) {
    cout << "YES" << endl;
    return 0;
  } else if ((s[end - 6] == 'k' && s[end - 5] == 'e' && s[end - 4] == 'y') &&
             (s[end - 3] == 'e' && s[end - 2] == 'n' && s[end - 1] == 'c' &&
              s[end] == 'e')) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
}
