#include <bits/stdc++.h>
using namespace std;
using LL = long long;
int main() {
  string s;
  cin >> s;
  string z = "keyence";
  int a = 0, b = 6, c = 0;
  int x = 0;
  while (a <= b) {
    if (s[a] == z[a]) a++, c++;
    if (s[b] == z[b]) b--, c++;
    x++;
    if (c >= 7) break;
    if (x >= 10) return !printf("NO");
  }
  puts("YES");
}
