#include <bits/stdc++.h>
using namespace std;
typedef priority_queue<long long int, vector<long long int> > pql;
bool chmin(long long int &a, long long int b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
bool chmax(long long int &a, long long int b) {
  if (b > a) {
    a = b;
    return 1;
  }
  return 0;
}
const long long int INF = 1LL << 60;
const long long int MOD = 1e9 + 7;
const long long int MAX = 1e9;
const char newl = '\n';
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string S;
  cin >> S;
  if (S.substr(0, 7) == "keyence") goto ABLE;
  if (S.substr(S.size() - 7) == "keyence") goto ABLE;
  for (long long int i = 1; i <= long long int(6); ++i) {
    if (S.substr(0, i) + S.substr(S.size() - 8 + i) == "keyence") goto ABLE;
  }
  cout << "NO" << newl;
  return 0;
ABLE:
  cout << "YES" << newl;
  return 0;
}
