e-olymp
Problems

Multiplication table

Multiplication table

Print multiplication table n * n with alignment.

Input

One integer n (1n9).

Output

Print multiplication table n * n with alignment as shown in sample.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
Output example #1
 1  2  3  4  5 
 2  4  6  8 10 
 3  6  9 12 15 
 4  8 12 16 20 
 5 10 15 20 25 
Input example #2
7
Output example #2
 1  2  3  4  5  6  7 
 2  4  6  8 10 12 14 
 3  6  9 12 15 18 21 
 4  8 12 16 20 24 28 
 5 10 15 20 25 30 35 
 6 12 18 24 30 36 42 
 7 14 21 28 35 42 49