import re t = input() t = re.sub(r'\(.*?\)', '@', t) print(t)