T = input() ans = [] flag = True for i in range(len(T)): if T[i] == '(': flag = False ans.append('@') elif T[i] == ')': flag = True if flag == True: ans.append(T[i]) print(''.join(ans))