#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int flag = 0;
  string s;
  cin >> s;
  int l = s.length();
  if (s[0] == 'k' && s[1] == 'e' && s[2] == 'y') {
    if (s[l - 4] == 'e' && s[l - 3] == 'n' && s[l - 2] == 'c' &&
        s[l - 1] == 'e') {
      flag = 1;
    }
  }
  if (flag == 1) {
    cout << "YES";
    return 0;
  } else {
    cout << "NO";
    return 0;
  }
  return 0;
}
