#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int t = 7;
  string s1 = "keyence";
  int x = 0;
  int a[500];
  int p = 0, p1, pp = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == s1[x]) {
      t--;
      x++;
    } else {
      a[p++] = i;
    }
  }
  for (int i = 0; i < p - 1; i++) {
    cout << a[i];
    if (a[i + 1] != a[i] + 1) pp = 1;
  }
  if (t == 0 && pp == 0)
    cout << "YES";
  else
    cout << "NO";
}
