<?while($a=trim(fgets(STDIN))){for($i=0;substr_count($a,$d=substr($a,-$i))*$i!=strlen($a);$i++);echo"$d\n";}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page