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