CF1999A.A+B Again?

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

A+B Again?

Given a two-digit positive integer nn, find the sum of its digits.

Input

The first line contains an integer tt (1t901 \leq t \leq 90) — the number of test cases.

The only line of each test case contains a single two-digit positive integer nn (10n9910 \leq n \leq 99).

Output

For each test case, output a single integer — the sum of the digits of nn.

Samples

8
77
21
40
34
19
84
10
99
14
3
4
7
10
12
1
18

在线编程 IDE

建议全屏模式获得最佳体验