Under construction

Still being built. Things may change

Interesting Graph

Time limit5sMemory limit512 MB

Summary
Given a graph where every 7-vertex subset has a pair separated by a outside vertex, output the chromatic polynomial values for 1 to n colors modulo 998244353.
Level

Hard9 of 10

Topics
Graph, Dynamic programming, Math
Solved
No attempts yet

Problem

You have an undirected graph with the following property. For any subset AA of 7 vertices of the graph, there exist two vertices a,b∈Aa, b \in A and a vertex c∉Ac \notin A such that every path from aa to bb passes through cc. Count the ways to properly color this graph with 1,2,…,n1, 2, \ldots, n colors. Each vertex gets one color, and a coloring is proper if the two endpoints of every edge have different colors. Print the counts modulo 998244353.

Input

The first line contains two integers nn and mm, the number of vertices and the number of edges, where 1≤n,m≤1051 \le n, m \le 10^5. Each of the next mm lines contains two integers aia_i and bib_i (1≤ai,bi≤n1 \le a_i, b_i \le n, ai≠bia_i \neq b_i), describing an edge between vertices aia_i and bib_i. No edge is given more than once. The input is guaranteed to satisfy the property stated above.

Output

Print one line with nn space-separated integers. The ii-th integer is the number of proper colorings of the graph with ii colors, modulo 998244353.

Examples1

  1. Example 1

    Input
    5 3
    3 5
    5 1
    1 3
    
    Expected output
    0 0 54 384 1500