S = input()
for i in range(len(S)):
    if S[i] != "k":
        continue
    index = i-1
    jump = True
    for j in "keyence":
        # print(j, index)
        try:
            temp = S.index(j, index+1)
            # print(temp, index)
            if temp - index != 1:
                if jump:
                    jump = False
                else:
                    break
            index = temp
        except:
            break
    else:
        print("YES")
        break
else:
    print("NO")