#include <bits/stdc++.h>
using namespace std;
int a[10];
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'k')
      for (int j = i + 1; j < s.length(); j++)
        if (s[j] == 'e')
          for (int k = j + 1; k < s.length(); k++)
            if (s[k] == 'y')
              for (int l = k + 1; l < s.length(); l++)
                if (s[l] == 'e')
                  for (int m = l + 1; m < s.length(); m++)
                    if (s[m] == 'n')
                      for (int n = m + 1; n < s.length(); n++)
                        if (s[n] == 'c')
                          for (int o = n + 1; o < s.length(); o++)
                            if (s[o] == 'e') {
                              cout << "YES\n";
                              return 0;
                            }
  }
  cout << "NO\n";
  return 0;
}
