<?php

$n = (int)trim(fgets(STDIN));
for ($n=0, $a=1,$aa=0; $n >= 0;$a++, $n--) {
    
    $a = $n * ($n-1);
    while($a <1) {
        $aa = $aa + $a;
    }
    echo $a;
}
echo "{$n}! = {$a}";
?>

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: