#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
string s;
void input() { cin >> s; }
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  input();
  string tmp = "keyence";
  string ans;
  int cnt = 0;
  for (auto p : tmp) {
    for (auto q : s) {
      if (p == q) {
        cnt++;
        break;
      }
    }
  }
  cout << (cnt == 7 ? "YES" : "NO") << endl;
  return 0;
}
