mod = 998244353 def main(): import sys input = sys.stdin.readline S = input().rstrip('\n') T = [] flg = 0 for s in S: if s == "(": flg = 1 T.append("@") elif s == ")": flg = 0 else: if not flg: T.append(s) print("".join(T)) if __name__ == '__main__': main()