S = input()

keyence = 'keyence'

if keyence in S:
    print('YES')
else:
    result = 'NO'
    for i in range(1, len(keyence) - 1):
        delimiters = keyence[:i], keyence[i:]
        if S.startswith(delimiters[0]) and S.endswith(delimiters[1]):
            result = 'YES'
            break
    print(result)