t = input() s = "" flg = False for c in t: if flg and c == ")": s += "@" flg = False elif c == "(": flg = True elif flg: continue elif not flg: s += c print(s)