The first line of input contains two space-separated integers N, K.
The second line of input contains N space-separated integersrepresenting the weight of each vertex.
Following N lines each contains N characters. There's an edge between vertex i and vertex j if and only if
.
Output one line containing an integer representing the answer. If there's less than K cliques, output.