#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  string a = "keyence";
  string b;
  cin >> b;
  long long i = 0;
  long long temp = 0;
  long long cnt = 0;
  for (long long j = 0; j < b.size(); j++) {
    if (b[j] == a[i] && i < 7) {
      temp = 1, i++;
    } else {
      if (temp == 1) cnt++;
      temp = 0;
    }
  }
  if (cnt <= 1 && i == 7)
    cout << "YES\n";
  else
    cout << "NO\n";
}
