#include <bits/stdc++.h>
using namespace std;
long long i[300000];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long a, b, c, d = 0, e = 1, f = 0;
  string s, u = "keyence";
  cin >> s;
  for (int n = 0; n < s.size(); n++) {
    if (s[n] == 'k') {
      e = 1, d = 0;
      for (int m = n + 1; m < s.size(); m++) {
        if (s[m] != u[e] && d == 0) {
          for (int y = m + 1; y < s.size(); y++) {
            m++;
            if (s[y] == u[e]) {
              d++, e++;
              break;
            }
          }
        } else if (s[m] == u[e])
          e++;
        if (e == 7) {
          f++;
          break;
        }
      }
    }
    if (f > 0) break;
  }
  if (f > 0)
    cout << "YES\n";
  else
    cout << "NO\n";
  return (0);
}
