#include <bits/stdc++.h>
using namespace std;
namespace FAST_IO {
template <typename T>
void read(T &a) {
  a = 0;
  int f = 1;
  char c = getchar();
  while (!isdigit(c)) {
    if (c == '-') {
      f = -1;
    }
    c = getchar();
  }
  while (isdigit(c)) {
    a = a * 10 + c - '0';
    c = getchar();
  }
  a = a * f;
}
template <typename T>
void write(T a) {
  if (a < 0) {
    a = -a;
    putchar('-');
  }
  if (a > 9) {
    write(a / 10);
  }
  putchar(a % 10 + '0');
}
template <typename T>
void writeln(T a) {
  write(a);
  puts("");
}
}  // namespace FAST_IO
string a = "keyence";
string s;
int zz;
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == a[zz]) {
      zz++;
      if (zz == 7) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
}
