S = list(input().rstrip()) T = "" isIn = False for s in S: if s == "(": isIn = True elif s == ")": T += "@" isIn = False elif not isIn: T += s print(T)