#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int a = 0, b = 6;
  string k = "keyence";
  string s;
  cin >> s;
  int a1 = 0, b1 = s.length() - 1;
  while (s[a1] == k[a]) {
    a1++;
    a++;
  }
  while (s[b1] == k[b]) {
    b1--;
    b--;
  }
  if (a >= b)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
