import re t = input() s = re.sub("(.*)(\([a-z]*\)(.*))", "\\1@\\3", t) print(s)