#include <bits/stdc++.h>
using namespace std;
bool f(int i, int j, string sub, string s) {
  if (j == sub.length()) return 1;
  if (i == s.length()) return 0;
  if (sub[j] == s[i])
    return f(i + 1, j + 1, sub, s) || f(i + 1, j, sub, s);
  else
    return f(i + 1, j, sub, s);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  cout << (f(0, 0, "keyence", s) ? "YES" : "NO") << '\n';
  return 0;
}
