<?php
do {
$a = (int) trim(fgets(STDIN));
} while($a < 0);
do {
$b = (int) trim(fgets(STDIN));
} while($b <=0);
for ($i =0; $b <= $a; $a -= $b, $i++);
echo $i."\n", $a."\n";
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: