t = input() f = True s = [] for i in t: if i=='(': f = False elif i==')': f = True; s.append('@') elif f: s.append(i) print(''.join(s))