Accounting Numeral System
시간 제한1초메모리 제한1024 MB
주어진 n을 이항계수의 합 C(x_m, m) + ... + C(x_1, 1) 꼴로 나타내고, 조건 0 ≤ x_1 < ... < x_m을 만족하는 x_i들을 출력한다.
문제
The latest Accounting Numeral System is the top accounting system in the whole world. Its creator, Dr. Ceizenpok, is the best expert of the respective authority. Any positive integer in this system based is represented as a sum of parts:
while --- are such integers that . Numbers our experts call accounting indexes. Each number in this system is recorded as , and it is considered that and , if . For example, number in the accounting system based is recorded as ({\bfseries 4})({\bfseries 3})({\bfseries 2}), because , and number in this system based looks like:({\bfseries 2})({\bfseries 0}), because .
You have to find a representation of an integer in the accounting numeral system based .
입력
Single line contains two integers and (, ).
출력
Single line should contain a sequence of space-separated integers , that form a number designation in the accounting numeral system. Number is the leftmost digit in the number designation , and --- its rightmost one.