create table by kotauchi

n=input();print"\n".join("1"+str(int(not 0<i<n-1))*(n-2)+"1"for i in range(n))if n!=1 else"1"

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top