#include <bits/stdc++.h>
using namespace std;
string s;
bool check() {
  string t = "keyence";
  int ji = 0;
  for (int i = 0; i < s.size(); i++)
    if (s[i] == t[ji]) {
      ji++;
      if (ji == t.size()) return true;
    }
  return false;
}
int main() {
  cin >> s;
  cout << (check() ? "YES" : "NO");
}
