#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e+17;
const long long MODcdf = 998244353;
string keyence = "keyence";
int main() {
  string s;
  cin >> s;
  int j = 0;
  int num = s.size();
  for (long long i = 0; i < num; i++) {
    if (s[i] == keyence[j]) j++;
  }
  if (j == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
