T = input() flg = False for s in T: if flg: if s == ")": print("@", end="") flg = False continue elif s == "(": flg = True else: print(s, end="") print()