n, k = list(map(int, input().split())) y = k + 10 x = k * y + k * (n - 2) for i in range(n - 2): print(1, end = " ") print(f"{y} {x}")