S = input()

ans_str = "keyence"

if S[0:7] == ans_str:
    print("YES")
    exit()

if S[len(S)-7:len(S)] == ans_str:
    print("YES")
    exit()

count_insert = 0
count_ans_str = 0
for i in range(len(S)):
    if count_ans_str > 6:
        print("NO")
        exit()
    elif S[i] == ans_str[count_ans_str]:
        count_ans_str += 1
        if count_insert == 1:
            count_insert = 2
    else:
        if count_insert == 2:
            print("NO")
            exit()
        count_insert = 1

if count_ans_str < 6:
    print("NO")
    exit()
print("YES")