#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const long long LINF = 1e18;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int count = 0;
  for (int i = 0; i < (s.size()); ++i) {
    if (t[count] == s[i]) count++;
  }
  if (count == 7)
    cout << ("YES") << endl;
  else
    cout << ("NO") << endl;
  return 0;
}
