#include <bits/stdc++.h>
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Pl = pair<long long, long long>;
using veci = vector<int>;
using vecl = vector<long>;
using vecveci = vector<vector<int>>;
using vecvecl = vector<vector<long long>>;
int main() {
  string S;
  cin >> S;
  char pre = 'O';
  string ans = "";
  for (char c : S) {
    if (c == 'k' && pre == 'O') {
      ans += c;
      pre = c;
    }
    if (c == 'e' && pre == 'k') {
      ans += c;
      pre = c;
    }
    if (c == 'y' && pre == 'e') {
      ans += c;
      pre = c;
    }
    if (c == 'e' && pre == 'y') {
      ans += c;
      pre = c;
    }
    if (c == 'n' && pre == 'e') {
      ans += c;
      pre = c;
    }
    if (c == 'c' && pre == 'n') {
      ans += c;
      pre = c;
    }
    if (c == 'e' && pre == 'c') {
      ans += c;
      pre = c;
    }
    if (ans == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
