#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  string keyence = "keyence";
  int front_same_count = 0;
  string answer = "YES";
  for (int i = 0; i < int(s.size()); i++) {
    if (s.at(i) == keyence.at(front_same_count)) {
      front_same_count++;
    } else {
      break;
    }
  }
  if (front_same_count == int(keyence.size())) {
    cout << answer << endl;
    return 0;
  }
  for (int i = int(s.size()) - front_same_count - 1; i < int(s.size()); i++) {
    if (front_same_count >= int(keyence.size())) {
      answer = "NO";
      break;
    }
    if (s.at(i) != keyence.at(front_same_count)) {
      answer = "NO";
      break;
    }
    front_same_count++;
  }
  cout << answer << endl;
}
