#P7151. C++ to Python

    ID: 6008 远端评测题 1000ms 256MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>2022“杭电杯”中国大学生算法设计超级联赛(2)

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))