solved p01 of P99