#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1000000007;
int main() {
  string s, k = "keyence";
  cin >> s;
  int t = s.size();
  int a = 0;
  int i = 0;
  while (i < 7) {
    if (s[i] == k[i]) {
      i++;
    } else
      break;
  }
  while (i < 7) {
    if (s[t - 1 - i] == k[6 - i]) {
      i++;
    } else
      break;
  }
  if (i == 7) {
    a = 1;
  }
  if (a == 1) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
}
