#include <bits/stdc++.h>
using namespace std;
string str, expe = "keyence", ans;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  cin >> str;
  bool flag = false;
  int idx = 0, size = str.length();
  for (int i = 0; i < size; i++) {
    if (idx == 7) break;
    if (flag) {
      if (expe[idx] == str[i] && expe[idx] != str[i + 1]) {
        for (int j = i; j < size; j++) {
          ans += str[j];
        }
        break;
      }
    } else {
      if (expe[idx] == str[i]) {
        idx++;
      } else {
        flag = true;
      }
    }
  }
  if (ans == "keyence" || ans.find("keyence") != -1)
    cout << "YES\n";
  else
    cout << "NO\n";
}
