S = input()
target_S = "keyence"
 
if S.startswith(target_S) or S.endswith(target_S):
    print("YES")
else:
    for i in range(len(target_S)):
        target_left = target_S[:i]
        target_right = target_S[i:]
        
        if S.startswith(target_left) and S.endswith(target_right):
            print("YES")
            break