You are given an undirected graph consisting of *n* vertices and <img align="middle" class="tex-formula" src="https://espresso.codeforces.com/674d9858011b0046ef87a26aa39f2b9cac65bfac.png" style="max-width: 100.0%;max-height: 100.0%;"/> edges. Instead of giving you the edges that exist in the graph, we give you *m* unordered pairs (*x*, *y*) such that there is no edge between *x* and *y*, and if some pair of vertices is not listed in the input, then there is an edge between these vertices.

You have to find the number of connected components in the graph and the size of each component. A connected component is a set of vertices *X* such that for every two vertices from this set there exists at least one path in the graph connecting these vertices, but adding any other vertex to *X* violates this rule.
The first line contains two integers *n* and *m* (1 ≤ *n* ≤ 200000, <img align="middle" class="tex-formula" src="https://espresso.codeforces.com/281a6739c6f74c0372a4f47d5c23a7f33b6f01d3.png" style="max-width: 100.0%;max-height: 100.0%;"/>).

Then *m* lines follow, each containing a pair of integers *x* and *y* (1 ≤ *x*, *y* ≤ *n*, *x* ≠ *y*) denoting that there is no edge between *x* and *y*. Each pair is listed at most once; (*x*, *y*) and (*y*, *x*) are considered the same (so they are never listed in the same test). If some pair of vertices is not listed in the input, then there exists an edge between those vertices.
none
5 5
1 2
3 4
3 2
4 2
2 5
2
1 4 
8 15
2 1
4 5
2 4
3 4
2 5
3 5
2 6
3 6
5 6
4 6
2 7
3 8
2 8
3 7
6 7
1
8 
12 58
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 10
1 11
1 12
2 3
2 4
2 5
2 6
2 7
2 8
2 9
2 10
2 11
2 12
3 4
3 5
3 6
3 7
3 8
3 9
3 10
3 11
3 12
4 5
4 6
4 8
4 11
4 12
5 6
5 7
5 8
5 9
5 10
5 11
6 7
6 8
6 9
6 10
6 11
6 12
7 8
7 9
7 10
7 11
7 12
8 9
8 10
8 11
9 10
9 11
9 12
10 12
4
1 1 1 9 
5 7
1 2
2 3
3 4
1 5
2 5
3 5
4 5
2
1 4 
6 10
1 2
1 3
1 4
1 6
2 3
2 4
2 5
3 5
3 6
4 6
1
6 
8 23
1 2
1 4
1 6
1 8
2 3
2 4
2 5
2 6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2
4 5
9 2
10 1
5 7
1 5
9 7
2 11
8 6
3 9
2 5
9 5
6 5
1 4
11 9
1 7
8 10
3 6
3 7
11 5
6 9
4 10
8 7
4 9
8 2
4 2
8 11
7 4
9 10
8 1
10 7
3 2
5 8
8 9
1 3
2 7
10 11
5 3
10 5
4 11
1 11
8 3
5
1 1 1 2 6 
#  If you win, you live. You cannot win unless you fight.
from sys import stdin,setrecursionlimit
input=stdin.readline
import heapq
rd=lambda: map(lambda s: int(s), input().strip().split())
ri=lambda: int(input())
rs=lambda :input().strip()
from collections import defaultdict as unsafedict,deque,Counter as unsafeCounter
from bisect import bisect_left as bl, bisect_right as br
from random import randint
from math import gcd, floor,log2,factorial,radians,sin,cos
random = randint(1, 10 ** 9)
mod=998244353
def ceil(a,b):
    return (a+b-1)//b
class myDict:
    def __init__(self,func):
        self.RANDOM = randint(0,1<<32)
        self.default=func
        self.dict={}
    def __getitem__(self,key):
        myKey=self.RANDOM^key
        if myKey not in self.dict:
            self.dict[myKey]=self.default()
        return self.dict[myKey]
    def get(self,key,default):
        myKey=self.RANDOM^key
        if myKey not in self.dict:
            return default
        return self.dict[myKey]
    def __setitem__(self,key,item):
        myKey=self.RANDOM^key
        self.dict[myKey]=item
    def getKeys(self):
        return [self.RANDOM^i for i in self.dict]
    def __str__(self):
        return f'{[(self.RANDOM^i,self.dict[i]) for i in self.dict]}'

# https://codeforces.com/blog/entry/93652
n,m=rd()
g=myDict(set)
for i in range(m):
    x,y=rd()
    x-=1
    y-=1
    g[x].add(y)
    g[y].add(x)
torem=set([i for i in range(n)])
cs=0
res=list()
for i in range(n):
    if i in torem:
        cs+=1
        ans=0
        torem.remove(i)
        q=deque([i])
        while q:
            node=q.popleft()
            ans+=1
            todel = set()
            for u in torem:
                if u not in g[node]:
                    todel.add(u)
            for u in todel:

                torem.remove(u)
                q.append(u)
        res.append(ans)
print(cs)
print(*sorted(res))
