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