#include <bits/stdc++.h>
using namespace std;
int kan_hyaku(int n) {
  int kurai = 0;
  for (int i = 0; i < 3; i++) {
    kurai = n % 10;
    n /= 10;
  }
  return kurai;
}
int kan_ju(int n) {
  int kurai = 0;
  for (int i = 0; i < 2; i++) {
    kurai = n % 10;
    n /= 10;
  }
  return kurai;
}
int kan_ichi(int n) {
  int kurai = 0;
  for (int i = 0; i < 1; i++) {
    kurai = n % 10;
    n /= 10;
  }
  return kurai;
}
int main() {
  string t = "keyenceA";
  string s;
  cin >> s;
  int count = 0;
  int flag = 0;
  int safecount = 0;
  int okflag = 0;
  int kcount = 0;
  int mcount = 0;
  for (int i = 0; i < 7; i++) {
    if (s.at(i) == t.at(i)) kcount++;
    if (kcount == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  for (int i = 0; i < 7; i++) {
    if (s.at(s.size() - 7 + i) == t.at(i)) mcount++;
    if (mcount == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  if (s.at(0) != 'k') {
    cout << "NO" << endl;
    return 0;
  }
  if (s.at(s.size() - 1) != 'e') {
    cout << "NO" << endl;
    return 0;
  }
  for (int i = 0; i < s.size(); i++) {
    if (s.at(i) == t.at(count)) {
      count++;
      flag = 1;
    } else {
      if (flag == 1) {
        flag = 0;
        safecount++;
      }
    }
    if (count == 7) {
      okflag = 1;
    }
    if (safecount == 2) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (okflag == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
