#include <bits/stdc++.h>
using namespace std;
bool is_prime(long long int x) {
  for (long long int i = 2; i * i <= x; i++) {
    if (x % i == 0) return false;
  }
  return true;
}
int main() {
  long long int A, B, C = 999999999, D = 0, E = 0, F = 0, G = 0, H = 0, N, M;
  string S, K, L;
  cin >> S;
  if (S[0] == 'k' && S[1] == 'e' && S[2] == 'y' && S[A - 4] == 'e' &&
      S[A - 3] == 'n' && S[A - 2] == 'c' && S[A - 1] == 'e')
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
