#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, n, x = 0, y = 0, z = 0, t = 0, v = 0, q = 0, f = 0, ans = 0;
  string s;
  cin >> s;
  n = s.size();
  for (i = 0; i < n; i++)
    if (s[i] == 'k') {
      x = i;
      ans++;
      break;
    }
  for (i = 0; i < n; i++)
    if (s[i] == 'e' && i > x) {
      y = i;
      ans++;
      break;
    }
  for (i = 0; i < n; i++)
    if (s[i] == 'y' && i > y) {
      z = i;
      ans++;
      break;
    }
  for (i = 0; i < n; i++)
    if (s[i] == 'e' && i > z) {
      t = i;
      ans++;
      break;
    }
  for (i = 0; i < n; i++)
    if (s[i] == 'n' && i > t) {
      v = i;
      ans++;
      break;
    }
  for (i = 0; i < n; i++)
    if (s[i] == 'c' && i > v) {
      q = i;
      ans++;
      break;
    }
  for (i = 0; i < n; i++)
    if (s[i] == 'e' && i > q) {
      ans++;
      break;
    }
  if (ans == 7)
    cout << "YES";
  else
    cout << "NO";
}
