def main(): T = input() left_idx = T.find("(") right_idx = T.rfind(")") print(T[:left_idx] + "@" + T[right_idx+1:]) if __name__ == "__main__": main()