solution 3 for make pairs (a b c) -> (1 2 3)