t = input() ans = "" trg = 1 for c in t: if c in ["(", ")"]: if c == "(": ans += "@" trg *= -1 continue if trg == 1: ans += c print(ans)