#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
const long long MOD = 1e9 + 7;
const long long INF = 5e18;
const int di[4] = {1, 0, -1, 0};
const int dj[4] = {0, 1, 0, -1};
string s;
bool dp[110][10];
string key = "keyence", ans;
int now = 0;
void input() {
  cin >> s;
  return;
}
void solve() {
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == key[now]) {
      ans += key[now];
      now++;
    }
    if (now == 7) break;
  }
  if (ans == key)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return;
}
int main() {
  input();
  solve();
  return 0;
}
