S = input() A = 0 Y = 0 for i in range(len(S)): if S[i] == '(': A += i elif S[i] == ')': Y += i + 1 print(S[:A] + '@' + S[Y:])