n = int(input()) i = 1 c = 0 while i <= n: j = i while j <= n: c += 1 print("%02d"%c,end='') j += 1 print("\n") i += 1