//dlang template---{{{
import std.stdio;
import std.conv;
import std.string;
import std.array;
import std.algorithm;
import std.typecons;
import std.math;
import std.range;

// MIT-License https://github.com/kurokoji/nephele
class Scanner
{
  import std.stdio : File, stdin;
  import std.conv : to;
  import std.array : split;
  import std.string;
  import std.traits : isSomeString;

  private File file;
  private char[][] str;
  private size_t idx;

  this(File file = stdin)
  {
    this.file = file;
    this.idx = 0;
  }

  this(StrType)(StrType s, File file = stdin) if (isSomeString!(StrType))
  {
    this.file = file;
    this.idx = 0;
    fromString(s);
  }

  private char[] next()
  {
    if (idx < str.length)
    {
      return str[idx++];
    }

    char[] s;
    while (s.length == 0)
    {
      s = file.readln.strip.to!(char[]);
    }

    str = s.split;
    idx = 0;

    return str[idx++];
  }

  T next(T)()
  {
    return next.to!(T);
  }

  T[] nextArray(T)(size_t len)
  {
    T[] ret = new T[len];

    foreach (ref c; ret)
    {
      c = next!(T);
    }

    return ret;
  }

  void scan()()
  {
  }

  void scan(T, S...)(ref T x, ref S args)
  {
    x = next!(T);
    scan(args);
  }

  void fromString(StrType)(StrType s) if (isSomeString!(StrType))
  {
    str ~= s.to!(char[]).strip.split;
  }
}

//Digit count---{{{
int DigitNum(int num) {
  int digit = 0;

  while (num != 0) {
    num /= 10;
    digit++;
  }

  return digit;
}
//}}}
//}}}

void main() {
  Scanner sc = new Scanner;

  string s;
  sc.scan(s);

  char[] S = new char[s.length];

  foreach (i; 0 .. s.length)
    S[i] = to!char(s[i]);

  foreach (i; 0 .. S.length) {
    if (S[i] != 'k' && S[i] != 'e' && S[i] != 'y' && S[i] != 'n' && S[i] != 'c') {
      S[i] = '_';
    }
  }


  foreach (i; 1 .. s.length - 1) {
    if (S[i - 1] == '_' && S[i + 1] == '_') {
      S[i] = '_';
    }
  }

  int num = 0;

  for (int i = 0; i < s.length; ++i) {
    if (S[i] == '_') {
      while (S[i] == '_') {
        i++;
        if (i == s.length) {
          break;
        }
      }
      num++;
    }
  }

  char[] res = new char[7];
  int tmp = 0;
  foreach (i; 0 .. s.length) {
    if (S[i] != '_') {
      res[tmp] = S[i];
      tmp++;
    }
    if (tmp == 7)
      break;
  }

  string result = to!string(res);

  if (num == 0 || num == 1 && result == "keyence")
    writeln("YES");
  else
    writeln("NO");
}
