S = list(str(input()))
correct = list("keyence")

index = 0
pre_false = 0
num_false = 0
flg = 1
for now, s in enumerate(S):
    if s == correct[index]:
        index += 1
        pre_false = 0
    else:
        if pre_false == 0:
            num_false += 1
            pre_false = 1

    # contain keyence
    if index == len(correct):
        flg = 0
        if num_false == 0:
            print("YES")
            break
        elif num_false == 1:
            if now == len(S) - 1:
                print("YES")
                break
            else:
                num_false = 1
                pre_false = 1
                index = 0
        else:
            print("NO")
            break

# not contain
if flg:
    print("NO")