def resolve():
    S = input()
    if "keyence" in S or "k" in S and "eyence" in S or "ke" in S and "yence" in S or "key" in S and "ence" in S or "keye" in S and "nce" in S or "keyen" in S and "ce" in S or "keyenc" in S and "e" in S:
        print("YES")
    else:
        print("NO")
resolve()