print_dp_3