Diagonal Sum Matrix


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

Given a positive integer n, print an n x n matrix where the value at row i and column j is i + j - 1.

Input

  • One positive integer n.

Output

  • Numbers on the same line are separated by exactly one space.

Constraints

  • 1 <= n <= 100

Example

Input
4
Output
1 2 3 4
2 3 4 5
3 4 5 6
4 5 6 7

Comments

There are no comments at the moment.