<?php
$a = intval(fgets(STDIN));
if($a==1){
  echo 1,"\n";exit;
}
for($j = $a-1; $j >= 0; $j--)
for($i = $a-1; $i >= 0; $i--)
echo $j;
echo "\n";