{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"\u003cp\u003e\nGiven an integer \u003cb\u003eN\u003c/b\u003e . Write a program to obtain the sum of the first and last digits of this number.\n\u003c/p\u003e\n"}},{"title":"Input Format","value":{"format":"MD","content":"\u003cp\u003e \nThe first line contains an integer \u003cb\u003eT\u003c/b\u003e, the total number of test cases. Then follow \u003cb\u003eT\u003c/b\u003e lines, each line contains an integer \u003cb\u003eN\u003c/b\u003e. \n\u003c/p\u003e\n"}},{"title":"Output Format","value":{"format":"MD","content":"\u003cp\u003eFor each test case, display the sum of first and last digits of \u003cb\u003eN\u003c/b\u003e in a new line.\u003c/p\u003e"}},{"title":"Constraints","value":{"format":"MD","content":"- $1 \\leq T \\leq 1000$\n- $1 \\leq N \\leq 1000000$\n"}},{"title":"Sample 1","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3 \n1234\n124894\n242323\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e5\n5\n5\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}