Binary Strings

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

A binary string ss is said to be antisymmetric if and only if s\[i]s\[si+1]s\[i] \neq s\[|s| - i + 1] for all i\[1,s]i \in \[1, |s|].

Yuta has nn binary strings s_is\_i, and he wants to know the number of binary antisymmetric strings of length 2L2 L which contain all given strings s_is\_i as continuous substrings. Help him find that number. As the answer can be very large, find it modulo 998,244,353998\\,244\\,353.

입력

The first line of the input contains two integers nn and LL (1n61 \leq n \leq 6, 1L1001 \leq L \leq 100). 

Then nn lines follow, each line contains a string s_is\_i (1s_i201 \leq |s\_i| \leq 20) consisting of characters "0" and "1".

출력

Print a single line with a single integer: the answer modulo 998,244,353998\\,244\\,353.

힌트

In the second example, the strings which satisfy all the restrictions are 000111, 001011, 011001 and 100110.