#!/usr/bin/env python3.8 import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines from operator import itemgetter N, M = map(int, read().split()) A = [M] for _ in range(N - 1): AA = sorted(enumerate(A), key=itemgetter(1)) n = (len(A) + 1) // 2 B = [0] * (len(A) + 1) S = 0 for i, x in AA[:n]: x += 1 B[i] = x S += x B[-1] = M - S if B[-1] < 0: B = A[:] B.append(-1) A = B print(*A[::-1])