#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s, t = "keyence", ans = "NO";
  cin >> s;
  int n = s.size();
  for (int i = 0; i < (8); i++) {
    bool a = true;
    for (int j = 0; j < (7); j++) {
      if (i <= j)
        if (t[i] != s[n - 7 + i]) a = false;
      if (i > j)
        if (t[i] != s[i]) a = false;
    }
    if (a) ans = "YES";
  }
  cout << ans << endl;
  return 0;
}
