#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30, MOD = 1000000007;
const long long LINF = 1ll << 60;
template <class T>
bool chmax(T& a, const T& b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T& a, const T& b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <typename T>
ostream& operator<<(ostream& o, const vector<T>& v) {
  for (T i : v) o << i << ' ';
  return o;
}
template <typename T>
istream& operator>>(istream& i, vector<T>& v) {
  for (T& j : v) i >> j;
  return i;
}
template <typename T>
ostream& operator<<(ostream& o, const set<T>& v) {
  for (T i : v) o << i << ' ';
  return o;
}
template <typename T, typename U>
ostream& operator<<(ostream& o, const pair<T, U>& v) {
  o << v.first << ' ' << v.second;
  return o;
}
int main() {
  string a = "keyence";
  string s;
  cin >> s;
  int n = s.size();
  int ai = 0;
  for (int i = 0, i_l = (n); i < i_l; ++i) {
    cerr << a[ai] << s[i] << endl;
    if (a[ai] == s[i]) {
      ai++;
    } else {
      break;
    }
  }
  cerr << ai << endl;
  for (int i = 1, i_l = (7 - ai); i < i_l; ++i) {
    cerr << a[7 - i] << s[n - i] << endl;
    if (s[n - i] != a[7 - i]) {
      cout << ((0) ? "YES" : "NO") << endl;
      return 0;
    }
  }
  cout << ((1) ? "YES" : "NO") << endl;
  return 0;
}
