CF379G New Year Cactus

Description

Jack and Jill are tired of the New Year tree, now they've got a New Year cactus at home! A cactus is a connected undirected graph where any two simple cycles have at most one common vertex. In other words, this graph doesn't have any edges that lie on more than one simple cycle. On the 31st of December they are going to decorate the cactus by hanging toys to its vertices. At most one toy is going to hang on each vertex — it's either the toy Jack hung or the toy Jill hung. It's possible for a vertex to have no toys. Jack and Jill has been arguing, so they don't want any edge to connect two vertices where one vertex has Jack's toy and the other vertex has Jill's toy. Jack has decided to hang $ a $ toys. What maximum number of toys $ b $ can Jill hang if they both cooperate to maximize this value? Your task is to write a program that finds the sought $ b $ for all $ a $ from 0 to the number of vertices on the New Year Cactus.

Input Format

The first line contains two integers $ n $ and $ m $ ( $ 1

Output Format

The first line must contain space-separated $ b_{a} $ (for all $ 0

Explanation/Hint

The cactus from the second example is: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF379G/155d4bde1e7b9618031a0958554d8c6f0d3f7cab.png)