#include <bits/stdc++.h>
using namespace std;
const long long int LINF = 2000000000000000000ll;
const int INF = 1000000100;
const long long int MOD = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  string sm = "keyence";
  int id = 0;
  bool flg = true;
  for (int i = 0; i < (n); ++i) {
    if (s[i] == sm[id]) {
      id++;
    } else {
      if (!flg) {
        puts("NO");
        return 0;
      }
      while (i < n && s[i + 1] != sm[id]) {
        i++;
      }
      flg = false;
    }
  }
  if (id == 7)
    puts("YES");
  else
    puts("NO");
  return 0;
}
