Home>

Value to be entered

N
s_1 a_1
...
s_N a_N

The first line is given the integer N for the number of employees, and each line from the second line to (N + 1) is the string s_i for the employee's name and the integer a_i for the employee's last year's age. Are given separated by a single-byte space (1 ≤ i ≤ N).

One line break is inserted at the end of the last line of the input value.
The string is passed from standard input.

Expected output
Please output the name of employee s_i and the age of the employee this year in N lines separated by a single-byte space in the order as entered.

s_1 (a_1 + 1)
...
s_N (a_N + 1)

Insert a newline at the end and do not include extra characters or blank lines.
conditions
The following conditions are met in all test cases.

・ 1 ≤ N ≤ 50
・ S_i (1 ≤ i ≤ N) is a character string of 1 to 10 characters.
・ Each letter of s_i (1 ≤ i ≤ N) is lowercase or uppercase or number
・ 18 ≤ a_i ≤ 120 (1 ≤ i ≤ N)

Input example 1
1
Yamada 30

Output example 1
Yamada 31

Input example 2
3
Tanaka 18
Sato 50
Suzuki 120

Output example 2
Tanaka 19
Sato 51
Suzuki 121

"
3
Tanaka 18
Sato 50
Suzuki 120

For input of

977219528
977219528
977219528
0

And the output result was obtained.
Why did you get this kind of output?
I want to know how to get the output I expect. "

What I tried
#include<stdio.h>
int main (void) {
    int i, n, m;
    char str [11];
    scanf ("% d",&n);
    for (i = 0;i<n;i ++) {
        scanf ("% s% d", str,&m);
        m ++;
        printf ("% s% d \ n", str, m);
    }
}