You could add a leading zero if the value is less than 10 or if the value is less than 10 the position is X else the position is Y.