T = input() flg = False ans = [] for t in T: if t == ")": flg = False ans.append("@") elif t == "(": flg = True else: if flg: continue ans.append(t) print(''.join(ans))