#include <bits/stdc++.h>
template <class T>
bool chmin(T& a, const T& b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmax(T& a, const T& b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
using namespace std;
using ll = long long;
using Pll = pair<ll, ll>;
using P = pair<int, int>;
template <class T>
using V = vector<T>;
template <class T>
using VV = V<V<T>>;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  string mae = "", ushi = "";
  int m = 0, u = -1;
  bool ok = false;
  if (s[0] == 'k') {
    if (s[1] == 'e') {
      if (s[2] == 'y') {
        if (s[3] == 'e') {
          if (s[4] == 'n') {
            if (s[5] == 'c') {
              if (s[6] == 'e') {
                ok = true;
              } else
                m = 6;
            } else
              m = 5;
          } else
            m = 4;
        } else
          m = 3;
      } else
        m = 2;
    } else
      m = 1;
  } else
    m = 0;
  int n = s.size();
  if (s[n - 1] == 'e') {
    if (s[n - 2] == 'c') {
      if (s[n - 3] == 'n') {
        if (s[n - 4] == 'e') {
          if (s[n - 5] == 'y') {
            if (s[n - 6] == 'e') {
              if (s[n - 7] == 'k') {
                ok = true;
              } else
                u = 1;
            } else
              u = 2;
          } else
            u = 3;
        } else
          u = 4;
      } else
        u = 5;
    } else
      u = 6;
  } else
    u = 7;
  if (u == m || ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
