#include <bits/stdc++.h>
using namespace std;
const int MOD = 998244353;
const int MAX = 1e5 + 10;
const long long INF = 1e18;
const double PI = acos(-1);
int main() {
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  string t = "keyence";
  int j = 0;
  bool flag = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == t[j]) ++j;
    if (j == 7) {
      flag = 1;
      break;
    }
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
