#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.length();
  string keyence = "keyence";
  int p = 0;
  for (int i = 0; i < 7; i++) {
    if (s[i] == keyence[p])
      p++;
    else
      break;
  }
  for (int i = n - 7 + p; i < n; i++) {
    if (s[i] == keyence[p])
      p++;
    else
      break;
  }
  if (p == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
