T = input() ans="" flag=0 for t in T: if flag==0: if t=="(": ans+="@" flag=1 else: ans+=t else: if t == ")": flag=0 print(ans)