Simple Maths 2

Time to practice expression register! #maths #linear

Input

34 5 13
26 7 8
21 6 6
16 14
13 11
11 10
9 8
8 7

Output

34 5 13
26 7 8
21 6 6
47 16 14
38 13 11
34 11 10
28 9 8
25 8 7