def main(): t = input() left = t.find("(") right = t.rfind(")") print(t[:left] + "@" + t[right + 1:]) if __name__ == "__main__": main()