#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
const int INF = 2147483647;
const long long INFL = 9223372036854775807;
const long long mod = 1000000007;
int main() {
  string s;
  cin >> s;
  int n = s.size() - 7;
  bool b = false;
  if (s == "keyence") b = true;
  for (int i = 0; i < int(n); i++) {
    string t = s;
    t.erase(i, n);
    if (t == "keyence") b = true;
  }
  if (b)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
