Solution to the carry problem