#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int MOD = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int cnt = 0, m = 0;
  for (int i = 0; i < n; i++) {
    if (1 < m) break;
    if (cnt == 0 && s[i] == 'k') {
      cnt++;
      continue;
    }
    if (cnt == 1 && s[i] == 'e') {
      cnt++;
      continue;
    }
    if (cnt == 2 && s[i] == 'y') {
      cnt++;
      continue;
    }
    if (cnt == 3 && s[i] == 'e') {
      cnt++;
      continue;
    }
    if (cnt == 4 && s[i] == 'n') {
      cnt++;
      continue;
    }
    if (cnt == 5 && s[i] == 'c') {
      cnt++;
      continue;
    }
    if (cnt == 6 && s[i] == 'e') {
      cnt++;
      continue;
    }
    while (i < n) {
      i++;
      if (cnt == 0 && s[i] == 'k') {
        cnt++;
        break;
      }
      if (cnt == 1 && s[i] == 'e') {
        cnt++;
        break;
      }
      if (cnt == 2 && s[i] == 'y') {
        cnt++;
        break;
      }
      if (cnt == 3 && s[i] == 'e') {
        cnt++;
        break;
      }
      if (cnt == 4 && s[i] == 'n') {
        cnt++;
        break;
      }
      if (cnt == 5 && s[i] == 'c') {
        cnt++;
        break;
      }
      if (cnt == 6 && s[i] == 'e') {
        cnt++;
        break;
      }
    }
    m++;
  }
  if (cnt == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
