Solve Theme Park (for the small input only)