#P9138. C++ to Python

C++ to Python

Source: Super League of Chinese College Students Algorithm Design 2022, Contest 2 by HDU.

Problem Description

Kayzin's repository has lots of code in C++, but Aba aba can only understand Python code. So Aba aba calls you for help.

The only things you should do is using (...) in Python to match std::make_tuple(...) in C++.

Input

First line has one integer TT, indicates TT test cases. In each case:

First line has string ss, indicates C++ code.

The C++ code only contains std::make_tuple, (, ), , and integers, without space.

1T1001\le T \le 100, the length of ss not exceeds 1000.

Output

Each test cases print one line of Python code, do not print any space.

Sample

2
std::make_tuple(-2,3,3,std::make_tuple(3,3))
std::make_tuple(std::make_tuple(1,1,4,5,1,4))
(-2,3,3,(3,3))
((1,1,4,5,1,4))