#include <bits/stdc++.h>
using namespace std;
void solve(int test_case) {
  string s;
  cin >> s;
  string req = "keyence";
  int pos = 0;
  for (char c : s) {
    if (req[pos] == c) {
      pos++;
      if (pos == 7) break;
    }
  }
  if (pos != 7)
    cout << "NO";
  else
    cout << "YES";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  for (int i = 1; i <= t; i++) {
    solve(i);
  }
  return 0;
}
