#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e6 + 5;
int n = 0, m = 0;
int a[MAXN];
int b[MAXN];
int largest(int a, int b) { return (a < b) ? b : a; }
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int ind = 0;
  int cnt = 0;
  int ans = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == t[ind]) {
      ++ind;
      cnt = 0;
    } else {
      if (cnt == 0) {
        ++ans;
      }
      ++cnt;
    }
  }
  if (ind != 7) {
    cout << "NO" << endl;
    return 0;
  }
  if (ans >= 2) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
  }
  return 0;
}
