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