#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 1e18;
string s;
int main() {
  cin >> s;
  string match = "keyence";
  int now = 0;
  for (long long i = (0); i < (s.size()); i++) {
    if (s[i] == match[now]) {
      now++;
    } else {
      break;
    }
  }
  int now_r = 6;
  for (long long i = (s.size() - 1); i >= 0; i--) {
    if (now < now_r && s[i] == match[now_r]) {
      now_r--;
    } else {
      break;
    }
  }
  if (now == now_r || now == 7 || now_r == 0) {
    cout << ("YES") << endl;
  } else {
    cout << ("NO") << endl;
  }
  return 0;
}
