Max_height_with_painting_to_print_or_paint