#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr int INF = 2147483647;
constexpr ll mod = 1000000007;
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;
}
inline void init() {
  cin.tie(nullptr);
  cout.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(15);
}
int main() {
  init();
  string s;
  cin >> s;
  string key = "keyence";
  int is = 0;
  int a = 0;
  bool b = true;
  for (int i = (int)(0); i < (int)(s.size()); ++i) {
    if (s[i] == key[is]) {
      ++is;
      b = false;
    } else {
      if (!b) {
        ++a;
        b = true;
      }
    }
  }
  if (is == key.size()) {
    if (a < 2) {
      cout << "YES"
           << "\n";
      return 0;
    }
  }
  cout << "NO"
       << "\n";
  return 0;
}
