#include <bits/stdc++.h>
using namespace std;
void ke(char x[]);
int main() {
  char S[100];
  cin >> S;
  ke(S);
  return 0;
}
void ke(char x[]) {
  char k1[100] = {"keyofscience"};
  char k2[100] = {"keyence"};
  int ans1 = 0;
  int ans2 = 0;
  ans1 = strcmp(x, k1);
  ans2 = strcmp(x, k2);
  if ((ans1 == 0) || (ans2 == 0)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
