Successor Function

View as PDF

Submit solution

Points: 0
Time limit: 1.0s
Memory limit: 128M

Author:
Problem type
Allowed languages
C, C++

Spiro is learning basic arithmetic! He is learning how to count, but can only count once... per day. His teacher Viv_CCGS has asked him to count from a number x, but Spiro only knows how to count once, so he answers with one single number x+1. Spiro has unlocked the successor function. Unfortunately, as Xyene has eloquently stated:

FatalEagle Spiro doesn't know anything about advanced concepts like strings or numbers.

And of course, Spiro knows nothing about arithmetic either. Viv_CCGS has forgotten that the successor function only applies to natural numbers, and has asked Spiro to count from some non-natural, yet integer numbers. Nevertheless, Spiro still responds with x+1.

Viv_CCGS asks a total of T questions. In the i^{th} question, he provides the number x_i and Spiro must respond with x_i+1.

In your code, you may not include +, -, *, /, %, ', " or any digit.

Constraints

1 \le T \le 10^4
|x_i| \le 10^{101}

Input Specification

The first line of input contains a single integer, T, the number of questions.

Among the next T lines, the i^{th} line contains a single integer, x_i, the number provided in the i^{th} question.

Output Specification

Output T lines. The i^{th} line should contain a single integer, x_i+1.

Sample Input

1
996718039999

Sample Output

996718040000

Sample Explanation

If this requires an explanation, [insert nasty statement here].

Note

This question really is ____


Comments

There are no comments at the moment.