S = [c for c in input()]

Target = ['k','e','y','e','n','c','e']
judge = True
start = 0

for i in Target:
    if i in S[start:]:
        start = S.index(i)
        S[start] = ' '
    else:
        judge = False



if judge == True:
    print('YES')
else:
    print('NO')
