#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int A, B, C, L, R, N, M, K, X = 0, Y = 0, sum = 0, num = 0,
                                        flag = 0;
  string S;
  cin >> S;
  if (S.find("eyence", S.find("k", 0) + 1) != string::npos) flag++;
  if (S.find("yence", S.find("ke", 0) + 1) != string::npos) flag++;
  if (S.find("ence", S.find("key", 0) + 1) != string::npos) flag++;
  if (S.find("nce", S.find("keye", 0) + 1) != string::npos) flag++;
  if (S.find("ce", S.find("keyen", 0) + 1) != string::npos) flag++;
  if (S.find("e", S.find("keyenc", 0) + 1) != string::npos) flag++;
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
