t = input() f = 0 ans = [] for i in t: if i == "(": ans.append("@") f = 1 elif i == ")": f = 0 elif f == 0: ans.append(i) print(*ans,sep="")