#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int lens = s.size();
  int lenk = k.size();
  int c[110][110];
  if (s == k) {
    cout << "YES" << endl;
    return 0;
  } else {
    for (int i = 0; i <= lens; i++) {
      for (int j = 0; j <= lenk; j++) {
        if (i == 0 || j == 0)
          c[i][j] = 0;
        else if (s[i - 1] == k[j - 1])
          c[i][j] = c[i - 1][j - 1] + 1;
        else if (c[i - 1][j] >= c[i][j - 1])
          c[i][j] = c[i - 1][j];
        else
          c[i][j] = c[i][j - 1];
      }
    }
    if (c[lens][lenk] == 7)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
