##### I'm a bit confused of how to do this problem in PYTHON. Can someone help me solve it?

Description

Given an integer n,please input a serpentine n*n matrix.The format of the matirx is given in sample output.

Input

The first line is an integer n. 1<=n<=1000

Output

n lines.Each line contains n positive integer.

Sample Input

4

Sample Output

1 2 6 7

3 5 8 13

4 9 12 14

10 11 15 16

**Voters**

Can you show us what you have tried>??? Posting assignments is breaking one of the rules of the ask section. Please elaborate.

@OldWizard209 I just want a little help of how to get started.

do you know how the output is coming? @TheHappyCow

@OldWizard209 No, not really. This is my first problem like this