New exercise: trinary