#include <bits/stdc++.h>
using namespace std;
int main() {
  string ans = "keyence";
  string key;
  int num = 0;
  int change = 0;
  bool check = true;
  bool second = true;
  cin >> key;
  for (int i = 0; i < key.size(); i++) {
    if (num < ans.size() && key.at(i) == ans.at(num)) {
      num++;
      check = true;
    } else if (change == 0) {
      check = false;
      change++;
    } else if (change > 0 && check) {
      second = false;
      break;
    }
  }
  if (num == ans.size() && second) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
}
