gahui and sousenkyo 4

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Gahui is watching the annual character election. After the election, The top 16 characters receive enormous benefits for one year. For that reason, fans vote passionately to get their favorite characters into the top 16. Remarkably, at least one Cinderella appears in every election, achieving an outstanding outcome.

While watching the character's election, Gahui suddenly think about the following problem. There are the following four facts in the election:

  • There are no two characters with a difference in $k$ votes count.
  • Every character has a different number of votes.
  • All character have at least one vote count.
  • The character that ranked 1st has $v$ votes count.

She wants to know the maximum number of characters participating in the election. Help Gahui.

입력

$v$ and $k$ are given separated by spaces.

출력

Print $n$ in the first line. $n$ is the number of characters participating in the election.

In the following $n$ lines, print the number of votes obtained by rank.

If there are multiple solutions, you may output any of them.

제한

  • $1 \le v \le 250\,000$
  • $1 \le k \le 100\,000$