#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[7] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  string b;
  cin >> b;
  int x = 0, y = 0, flag = 0, ans = 0;
  for (int i = 0; i < b.size(); ++i) {
    if (b[i] == a[x]) {
      ++x;
      --flag;
    } else if (flag == 0) {
      ++y;
      ++flag;
    }
    if (y > 1) {
      break;
    }
  }
  if (x == 7) ++ans;
  if (ans == 1)
    cout << "YES";
  else
    cout << "NO";
}
