#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1e9 + 7;
int main() {
  string S, ans = "NO\n";
  cin >> S;
  int n = S.size();
  for (int i = 0; i < n - 6; i++) {
    for (int j = 1; j < 8; j++) {
      for (int k = i + j; k + 6 - j < n; k++) {
        if (S.substr(i, j) + S.substr(k, 7 - j) == "keyence") ans = "YES\n";
      }
    }
  }
  cout << ans;
}
