You still need to provide more in order to understand your question.
You have given an example of input, but you say that when you add parentheses you get the wrong answer. So, you need to show the example with parentheses, as well as indicate what answer you expect.