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 
from io import BytesIO, IOBase
import os
from random import getrandbits, randrange
from string import ascii_lowercase, ascii_uppercase
import sys
from math import ceil, floor, sqrt, pi, factorial, gcd, log, log10, log2, inf, cos, sin
from copy import deepcopy, copy
from collections import Counter, deque, defaultdict
from heapq import heapify, heappop, heappush
from itertools import (
    accumulate,
    product,
    combinations,
    combinations_with_replacement,
    permutations,
)
from bisect import bisect, bisect_left, bisect_right
from functools import lru_cache, reduce
from decimal import Decimal, getcontext
from typing import List, Tuple, Optional


inf = float("inf")


def ceil_div(a, b):
    return (a + b - 1) // b


def isqrt(x):
    return int(sqrt(x))


def int1(s):
    return int(s) - 1


BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)


def input():
    return sys.stdin.readline().rstrip("\r\n")


print = lambda *args, end="\n", sep=" ": sys.stdout.write(
    sep.join(map(str, args)) + end
)


def yes(res):
    return print("Yes" if res else "No")


def YES(res):
    return print("YES" if res else "NO")


class Debug:
    def __init__(self, debug=False):
        self.debug = debug

    def get_ic(self):
        if self.debug:
            from icecream import ic

            return ic
        else:
            return lambda *args, **kwargs: ...


def pairwise(a):
    n = len(a)
    for i in range(n - 1):
        yield a[i], a[i + 1]


def factorial(n):
    return reduce(lambda x, y: x * y, range(1, n + 1))


ic = Debug(False).get_ic()


def first(s: set):
    return next(iter(s))


def solve(n, uv):
    g = [set() for _ in range(n)]
    for u, v in uv:
        g[u].add(v)
        g[v].add(u)
    res = []
    left = set(range(n))

    while left:
        q = [first(left)]
        left.remove(q[0])

        cnt = 0
        while q:
            u = q.pop()
            cnt += 1

            for v in list(left):
                if v not in g[u]:
                    q.append(v)
                    left.remove(v)
        res.append(cnt)
    print(len(res))
    res.sort()
    print(*res)


n, m = map(int, input().split())
uv = [list(map(int1, input().split())) for _ in range(m)]
solve(n, uv)
