#include <bits/stdc++.h>
using namespace std;
long long INF = 1e9 + 7;
;
long long dx[4] = {1, 0, -1, 0};
long long dy[4] = {0, 1, 0, -1};
long long dp[55][55][5000];
signed main() {
  string S;
  cin >> S;
  if (S[0] == 'k' && S[1] == 'e' && S[2] == 'y') {
    if (S.substr(S.size() - 4, 4) == "ence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  if (S.substr(0, 7) == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  if (S.substr(S.size() - 7, 7) == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  cout << "NO" << endl;
}
