#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int INF = 1e9;
const int MOD = 1e9 + 7;
int dx[] = {1, 0, -1, 0, 1, -1, -1, 1};
int dy[] = {0, 1, 0, -1, 1, 1, -1, -1};
int main() {
  string s;
  cin >> s;
  for (int i = 0; i <= s.size() - 7; i++) {
    for (int j = 0; j <= s.size() - 7; j++) {
      string tmp = s;
      tmp.erase(i, j);
      if (tmp == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
