T = input() v = [] mode = 1 for i in T: if i == '(': mode = 0 v.append('@') elif i == ')': mode = 1 elif mode: v.append(i) print("".join(v))