S = [c for c in input()]

Target = ['k','e','y','e','n','c','e']
judge = False
for j in range(7):
    left = ''.join(Target[:j])
    right = ''.join(Target[j:])
    start = 0

    if left in ''.join(S):
        if left != '':
            start = ''.join(S).index(left)

    if right in ''.join(S[start:]):
        judge=True

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