#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  long long ans = false;
  if (S.substr(0, 7) == "keyence")
    ans = true;
  else if (S.substr(0, 3) == "key" & S.substr(S.length() - 4, 4) == "ence")
    ans = true;
  else if (S.substr(S.length() - 7, 7) == "keyence")
    ans = true;
  if (ans)
    printf("YES\n");
  else
    printf("NO\n");
}
