#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 7;
char s[500], t[] = "keyence";
bool cmp(char a[]) {
  for (int i = 0; t[i]; i++)
    if (a[i] != t[i]) return 0;
  return 1;
}
int cntfront(char a[]) {
  for (int i = 0; t[i]; i++)
    if (a[i] != t[i]) return i;
  return 7;
}
int cntback(char a[]) {
  for (int i = 6, ans = 0; i + 1; ans++, i--)
    if (a[i] != t[i]) return ans;
  return 7;
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> s;
  int n = strlen(s);
  for (int i = 0; i <= n - 7; i++)
    if (cmp(s + i)) return cout << "YES" << endl, 0;
  if (cntfront(s) + cntback(s + n - 7) == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
