#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vec = vector<ll>;
using vecst = vector<string>;
using Graph = vector<vector<ll>>;
const ll dx[4] = {1, 0, -1, 0};
const ll dy[4] = {0, 1, 0, -1};
int ctoi(char c) {
  if (c >= '0' && c <= '9') {
    return c - '0';
  }
  return 0;
}
int main() {
  string s;
  cin >> s;
  ll n = s.size();
  ll count = 0;
  for (ll i = 0; i < n; i++) {
    if (s[i] == 'k') {
      count++;
    }
    if (count == 1 && s[i] == 'e') {
      count++;
    }
    if (count == 2 && s[i] == 'y') {
      count++;
    }
    if (count == 3 && s[i] == 'e') {
      count++;
    }
    if (count == 4 && s[i] == 'n') {
      count++;
    }
    if (count == 5 && s[i] == 'c') {
      count++;
    }
    if (count == 6 && s[i] == 'e') {
      count++;
    }
  }
  if (count == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
