T = input() S = [] kakko = 0 for t in T: if kakko==0: if t=="(": kakko = 1 S.append("@") else: S.append(t) else: if t==")": kakko = 0 print("".join(S))