#include <bits/stdc++.h>
int main(int argc, char const *argv[]) {
  std::string input;
  std::string keyence = "keyence";
  std::getline(std::cin, input);
  bool check = false;
  for (int a = 0; a < input.size() - 6; ++a) {
    if (input[a] == keyence[0]) {
      for (int b = a + 1; b < input.size() - 5; ++b) {
        if (input[b] == keyence[1]) {
          for (int c = b + 1; c < input.size() - 4; ++c) {
            if (input[c] == keyence[2]) {
              for (int d = c + 1; d < input.size() - 3; ++d) {
                if (input[d] == keyence[3]) {
                  for (int e = d + 1; e < input.size() - 2; ++e) {
                    if (input[e] == keyence[4]) {
                      for (int f = e + 1; f < input.size() - 1; ++f) {
                        if (input[f] == keyence[5]) {
                          for (int g = f + 1; g < input.size(); ++g) {
                            if (input[g] == keyence[6]) {
                              check = true;
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (check) {
    std::cout << "YES" << std::endl;
  } else {
    std::cout << "NO" << std::endl;
  }
  return 0;
}
