#include <bits/stdc++.h>
using namespace std;
int cnt[10];
int32_t main() {
  string a;
  cin >> a;
  int a1 = 0, b1 = 0;
  string b = "keyence", c = "ecneyek";
  for (int i = 0; i < 7; i++) {
    if (a[i] = b[i])
      a1++;
    else
      break;
  }
  int n = a.length() - 1;
  for (int i = 0; i < 7; i++) {
    if (c[i] = a[n - i])
      b1++;
    else
      break;
  }
  if (a1 + b1 >= 7) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
}
