P15906 [HackerEarth] Rahul Hacker has a message that he has coded in form of digits, which means that the message contains only numbers and nothing else. He is fearful that the enemy may get their hands on t
普及
题目描述

Rahul Hacker has a message that he has coded in form of digits, which means that the message contains only numbers and nothing else. He is fearful that the enemy may get their hands on the secret message and may decode it. Rahul Hacker already knows the message by heart and he can simply destroy it.

But he wants to keep it in case its needed in a worse situation. He wants to further encode the message in such a format which is not completely reversible. This way if enemies gets hold of the message they will not be completely able to decode the message.

Since the message consists only of number he decides to flip the numbers. The first digit becomes last and vice versa. For example, if there is 3769 in the code, it becomes 9673 now. All the leading zeros are omitted e.g. 15900 gives 951. So this way the encoding can not completely be deciphered and has some loss of information.

Rahul Hacker is further thinking of complicating the process and he needs your help. He decides to add the two flipped numbers and print the result in the encoded (flipped) form. There is one problem in this method though. For example, 134 could be 431, 4310 or 43100 before reversing. Hence the method ensures that no zeros were lost, that is it can be assumed that the original number was 431.

INPUT

The input consists of T test cases. The first line of the input contains only positive integer T. Then follow the cases. Each case consists of exactly one line with two positive integers separated by space. These are the flipped numbers you are to add.

OUTPUT

For each case, print exactly one line containing only one integer - the flipped sum of two flipped numbers.

CONSTRAINTS
The value of T will be less than 1000
The value of digits will be less than 500000

SAMPLE INPUT
2
353 575
238746 39857

SAMPLE OUTPUT
829
527327

输入格式

见题面

输出格式

见题面

样例输入
2 353 575 238746 39857
样例输出
5339 8413 7216 4593 52511 6476 7084 20941 8606 9071 88011 3871 78171 56511 46011 53811 39021 8175 57631 66121 69001 8965 63601 83441 56411 4875 3369 56001 1919 82461 58731 7105 72681 30201 55101 2616 8819 31731 4797 1787 62341 578 46211 2474 3701 1964 3097 6229 9564 6869 3644 4809 65511 5245 47411 6797 973 5349 655 55261 5542 4128 6279 8794 6118 3559 2497 4538 50701 70201 6072 37901 4898 3275 5623 2082 8214 5364 5754 53051 7091 30521 69651 921 3665 3048 9402 2035 78761 56211 5569 6969 35811 2205 8202 4016 79531 7847 6115 67211 8608 48771 3086 62161 3547 27341 1679 2041 40101 77451 6067 2387 1 77451 1278 59811 54351 5448 3302 985 7069 6118 63721 9921 56501 7473 86661 5674 73571 39011 87631 30661 4498 5538 3518 31411 344 3213 5908 5219 52951 80471 5039 4046 65641 64741 6605 6389 70221 5415 4226 2567 84961 3836 34841 6268 2198 59841 9442 49501 32041 39301 4583 8149 56111 46031 42861 9691 5239 7821 4269 4448 6409 84311 5466 5056 5608 6999 5917 85241 90001 7987 4048 82541 5935 68751 1922 2338 7308 2603 5494 52081 31341 30511 65201 3665 62401 8812 41161 80961 34651 47831 87301 56041 88621 4776 3038 41601 6091 8713 58621 7017 37921 54751 25311 8111 9434 97 2733 4441 54231 684 6476 199 449 1149 5586 59351 56311 9435 44011 45901 81011 84261 4548 9591 128 60031 6892 18501 50101 37461 6682 6054 53711 1332 3876 77971 4337 17101 5725 56141 77511 57431 33631 187 91301 59641 4631 58701 7777 5456 368 79811 5108 6294 58841 23321 38861 38631 2199 4194 45501 30501 32651 4091 30631 5067 2991 5261 72521 26961 7264 49221 5957 825 6087 9885 6507 40231 1214 8079 3959 5898 476 2309 5116 3574 83511 5476 8347 75 53361 88081 45711 5775 46871 285 65561 5587 337 70261 1745 2097 8187 73321 81851 25401 71521 7478 6764 50961 1647 3128 5127 5507 2867 4149 55711 2845 198 7703 49241 7685 79 7145 8856 4216 65 6563 8245 6088 7467 86961 53251 49271 48911 4087 8255 32711 8526 51801 3091 6943 115 9106 9732 57071 57201 7608 41761 6787 4538 7708 63221 26021 6386 334 36711 5005 97701 9783 50661 5368 4597 7464 925 34941 47221 2259 4308 657 82811 31051 7642 7539 3907 4678 61731 165 48011 45431 4888 34111 4096 33911 4749 6866 4337 2264 6038 7461 2047 7992 56781 48001 45431 7224 39611 46211 52601 51041 3829 6292 332 755 21721 47561 731 8216 7018 69831 52821 6342 2681 5306 6375 30701 3069 2675 4133 8759 5597 63111 50351 5793 2171 6939 7944 62021 42451 5982 2284 74751 7224 8185 4853 31511 2499 4513 3517 7964 3575 3706 40261 60521 61911 81751 47 37311 3791 60921 854 34321 2696 8875 71241 327 21421 41421 277 6162 5384 57981 59101 49501 67801 45 2098 3614 66011 62051 55291 60861 49941 8079 36031 51941 8487 62741 7395 35261 4961 68241 71211 31111 5466 4707 6251 50641 107 50641 8995 64061 45621 5182 4301 45211 3869 9495 3503 207 45011 7276 6347 52801 5033 59351 69911 949 7471 4321 1324 6248 8169 665 8762 40911 7204 52531 6813 7457 51511 3038 52041 6508 73701 55631 6875 6336 81311 9826 9044 30061 5038 6665 6287 3749 43741 332 5949 39141 66041 4949 3535 56461 722 5705 5206 5899 5843 7998 5679 8008 4515 54971 56351 223 4129 7551 4875 2751 68121 3052 7159 32281 2088 32401 67101 6652 349 2311 4887 31121 48821 7163 7798 68751 32011 5123 4618 1119 6919 5328 6695 61211 52211 215 5146 61631 2466 9298 55421 54621 28101 88651 33911 6588 2875 86131 35821 2888 86011 3954 34631 53341 79721 74701 2177 8996 30221 4988 61041 43531 5618 44301 2482 47821 68711 6311 5678 4509 67931 3386 4494 59801 5279 24861 61601 7334 8159 9652 796 6683 6875 5489 7249 46921 1268 238 4448 8471 7438 3086 3989 7379 7596 35111 57241 53021 6267 6655 3461 80001 75441 4778 6455 88711 25141 5746 8736 23351 60471 45471 4428 2959 4115 5439 67951 748 5846 2998 52361 88341 37631 6548 40721 76301 3378 2147 70101 62411 6788 5045 5602 6169 85101 63011 49671 4716 52821 41291 38 42631 42921 21501 6544 23931 3682 5119 6439 5346 24351 2732 43931 46131 8997 66431 77471 1075 4277 58811 36821 6909 9035 50421 8655 8609 65821 3962 33501 70631 2252 5092 34181 50551 4615 8723 5047 4322 813 46211 6658 36041 49931 8633 48111 7182 5728 44711 68161 6563 5919 2745 4399 8136 63231 7825 8704 8514 4177 57141 66971 25331 3334 7877 5187 5974 7439 63841 62101 64911 8915 48351 7534 6363 6057 8362 3406 4842 287 288 7822 687 6367 6364 88 54361 87431 4352 2884 7039 3336 61411 50411 8239 95701 7069 40221 5019 33731 8653 7181 7893 4275 4529 79151 3534 6099 37721 6076 5444 65711 51531 3888 74941 41121 4298 20081 8825 6603 6466 5536 6307 2206 4408 7296 1602 3481 40901 42021 63041 1292 42921 4533 45761 63441 713 2931 5349 57451 2617 58011 7255 6495 6905 6456 61911 1649 51271 106 4519 72311 5935 967 56471 21511 57421 6369 5608 8073 6529 919 5649 3132 145 5747 5406 77431 2523 8228 7738 69251 6888 5708 66601 6036 1463 59931 58051 1472 77721 32721 26511 31911 61271 50701 24121 2429