Partitioning tens and ones

Partitioning tens and ones