print_dp_4