#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const string ln = "\n";
constexpr int INF = 1001001001;
constexpr int MOD = 1000000007;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string key = "keyence";
  int it = 0;
  vector<int> ids(7, -1);
  for (int i = 0; i < s.size(); i++) {
    char c = s[i];
    char k = key[it];
    if (c == k) {
      ids[it] = i;
      it++;
    }
    if (it > 6) {
      break;
    }
  }
  string ans = "NO";
  int cnt = 0;
  for (int i = 1; i < 7; i++) {
    if (ids[i - 1] + 1 != ids[i]) {
      cnt++;
    }
  }
  if (cnt <= 1) {
    ans = "YES";
  }
  cout << ans << ln;
  return 0;
}
