#include <bits/stdc++.h>
using namespace std;
int a[20];
int main() {
  string s = "keyence";
  int cnt = 0;
  string s1;
  cin >> s1;
  for (int i = 0; i < s1.length(); i++) {
    if (s1[i] == s[cnt]) cnt++;
  }
  if (cnt == s.length())
    cout << "YES\n";
  else
    cout << "NO\n";
}
