#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007, INF = 10000000000000000;
long long gcd(long long a, long long b) {
  if (b == 0) {
    return a;
  }
  return gcd(b, a % b);
}
int main() {
  string s;
  cin >> s;
  long long n = s.size(), fin = 0;
  for (long long i = 0; i < n; i++) {
    if (s[i] == 'k' && fin == 0)
      fin++;
    else if (s[i] == 'e' && fin == 1)
      fin++;
    else if (s[i] == 'y' && fin == 2)
      fin++;
    else if (s[i] == 'e' && fin == 3)
      fin++;
    else if (s[i] == 'n' && fin == 4)
      fin++;
    else if (s[i] == 'c' && fin == 5)
      fin++;
    else if (s[i] == 'e' && fin == 6)
      fin++;
  }
  string ans = "NO";
  if (fin == 7) ans = "YES";
  cout << ans << endl;
}
