#P7151. C++ to Python
C++ to Python
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 $T$, indicates $T$ test cases. In each case:
First line has string $s$, indicates C++ code.
The C++ code only contains std::make_tuple, "(", ")", "," and integers, without space.
$1\le T \le 100$, the length of $s$ not exceeds 1000.
Output
Each test cases print one line of Python code, do not print any space.
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))