#include <bits/stdc++.h>
using namespace std;

int main() {
  string S;
  cin >> S;
  string ans = "NO";
  for (int i = 0; i <= S.size(); i++) {
    for (int j = 0; j <= S.size() - i; j++) {
      string T = S;
      T.erase(T.begin() + j, T.begin() + j + i);
      if (T == "keyence") ans = "YES";
    }
  }
  cout << ans << endl;
}