import re T = input() A= re.sub("\(.+?\)", "@", T) A= re.sub("\(\)", "@",A) print(A)