s=list(input()) out="" flag=False for i in s: if i=="(": flag=True out+="@" elif i==")": flag=False elif flag==False: out+=i print(out)