#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long INFS = 1e18;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
int main() {
  string s;
  cin >> s;
  string ans = "keyence";
  int cnt = 0;
  int pena = 0;
  for (int i = 0; i < ((long long)(s).length()); i++) {
    if (s[i] == ans[cnt])
      cnt++;
    else {
      if (pena == 0) {
        pena++;
        while (s[i + 1] == ans[cnt]) {
          i++;
        }
      }
      if (pena == 1) {
        cout << "NO" << endl;
        return 0;
      }
    }
    if (cnt == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
