detect at each position if the digit is small, large or medium.

Top