#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<long long, long long>;
void error() {
  cout << "-1";
  exit(0);
}
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
  string s;
  cin >> s;
  string e = "keyence";
  ll prefix = 0;
  for (auto i = 0; i < 7; i++) {
    if (s[i] == e[i])
      prefix++;
    else
      break;
  }
  ll suf = 0;
  for (ll i = 6; i >= 0; i--) {
    if (s[i] == e[i])
      suf++;
    else
      break;
  }
  if (suf + prefix >= 7) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
