Down and up

A ball is released on the left side at a height of 1 m on a frictionless 30 degree slope, |a| = 5 m/s^2. At the bottom, it turns smoothly onto a 60 degree slope going back up, |a| = 8.66 m/s^2.

What maximum height does it reach on the right side?