#P3910. 纪念邮票

纪念邮票

Description

The post office has recently released a set of commemorative stamps. There are NN stamps in this set, each with a different face value, in order 11 cent, 22 cents, …, NN cents.

Xiaoming is a stamp collector. He likes this set very much, but he only has MM cents, which is not enough to buy the whole set. However, he wants to spend exactly all his money. As a collector, he also does not want the stamp numbers to be discontinuous, so he plans to buy ba+1b-a+1 consecutive stamps with values from aa cents to bb cents, and the total value is exactly MM cents.

Your task is to find all valid plans and output them in the form [a,b]\left[a,b\right].

Input Format

The input consists of a single line containing two integers NN and MM (1N,M1091 \le N, M \le 10^9), separated by a space.

Output Format

Output each valid plan on a separate line as [a,b]\left[a,b\right], in increasing order of aa.

20 15
[1,5]
[4,6]
[7,8]
[15,15]

Hint

Translated by ChatGPT 5