#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long inf = 11451419198109130;
struct edge {
  long long to;
  long long to2;
  long long cost;
};
string k = "keyence@";
signed main() {
  string s;
  cin >> s;
  long long now = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == k[now]) now++;
  }
  if (now == 7)
    puts("YES");
  else
    puts("NO");
}
