n, k = map(int, input().split()) ans = [1] * n ans[0] = (k + n - 1) * k ans[1] = k + 1 print(*ans)