Start: Jul, 03, 2019 08:38:00
2019年度暑期短学期第七天 助教场
End: Jul, 04, 2019 23:00:00
Time elapsed:
Time remaining:

Problem_ID: D
Result: Accepted
Time: 62ms
Memory: 25312kB
Author: 2018212212064
In contest: 1292

n=int(input())
for i in range(n):
        str1=input()
        new=str1.replace('print ','print(')
        if new!=str1:
                new=new+')'
        print(new)