ans = ['k','e','y','e','n','c','e']
S = input()

N = len(ans)
k = 0
flag =False
for s in S:
    if s == ans[k]:
        # print(k,s)
        k += 1
        if k == N-1:
            flag = True
            # print('complete')
            break

if flag:
    print('YES')
else:
    print('NO')