Условие:

8000 + 342;
31000 + 78;
605000 + 506;
500000 + 270;
40000 + 1000 + 24;
70000 + 6000 + 5.

8000 + 342 = 8342
 
31000 + 78 = 31078
 
605000 + 506 = 605506
 
500000 + 270 = 500270
 
40000 + 1000 + 24 = 41024
 
70000 + 6000 + 5 = 76005