In a Mesh networking system, there are
MI Routers, where

pairs of
MI Routers are bidirectionally connected. In order to check the stability of the system, for each
MI Router, we should determine the number of connected components after removing it and relative connections from the system. And then assess that if we should add more
MI Routers into the system. Print the numbers of connected components in residual system after removing each
MI Router.
输入描述:
The first line contains two integers
, denoting the number of MI Routers and bidirectional connections in the Mesh networking system.
Following
lines each contains two integers
, denoting the
-th MI Router has a bidirectional connection with the
-th MI Router.
It's guaranteed that there are no duplicated connections in input.
输出描述:
Print one line containing
integers, where
-th integer denotes the number of connected components after removing
-th MI Router and relative connections.