106 - Fermat vs. Pythagoras

19/05/01, Warning: The limit for the value of N is now 1000000, to prevent people from sending just a table.

For the actual description of the input and output files, read the HTML version of the problem. Thanks.