solved the problem but wrong output
added parentesis problem (not confirmed if correct)
Tried some stuff with the parenthesis problem but still dosent work