= $N) { for ($k = 0; $k < $N; $k++) { $ans = $ans . "9"; } } else { for ($k = 0; $k < $N; $k++) { if ($k < $N - $M) { continue; } if ($k >= $N - $M) { $ans = $ans . "0"; } else { $ans = $ans . "9"; } } } printf($ans . "\n"); } ?>