Two teenagers plead guilty to attack that hospitalised their victim.