#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = (int)1e9;
const int MOD = (int)1e9 + 7;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  string tmp = s;
  for (int i = 0; i < (s.length() - 7); ++i) {
    if (s.erase(i, s.length() - 7) == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
    s = tmp;
  }
  cout << "NO" << endl;
  return 0;
}
