#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
constexpr int INF = 0x3f3f3f3f;
constexpr long long LINF = 0x3f3f3f3f3f3f3f3fLL;
signed main() {
  string s;
  char a[10] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  cin >> s;
  int n = s.size();
  if (s[0] == 'k' && s[1] == 'e' && s[2] == 'y' && s[3] == 'e' && s[4] == 'n' &&
      s[5] == 'c' && s[6] == 'e') {
    cout << "YES\n";
  } else if (s[n - 1] == 'e' && s[n - 2] == 'c' && s[n - 3] == 'n' &&
             s[n - 4] == 'e' && s[n - 5] == 'y' && s[n - 6] == 'e' &&
             s[n - 7] == 'k')
    cout << "YES\n";
  else {
    int cnt = 0;
    for (int i = 0; i < (7); ++i) {
      if (s[i] == a[i])
        cnt++;
      else
        break;
    }
    for (int i = n - (7 - cnt); i < n; i++) {
      if (s[i] == a[cnt])
        cnt++;
      else {
        cout << "No\n";
        return 0;
      }
    }
    cout << "YES\n";
  }
  return 0;
}
