Input begins with a line containing a positive integerindicating the size of the matrix and the vectors to use in the encryption. After this are two lines: the first of these contains the plaintext and the second the ciphertext. Both of these lines will consist only of characters in the set A,
, Z,0,
, 9 and the space character. The lengths of both strings are identical and are multiples of
. Both of these strings may include trailing blanks.
Output one of three possible answers. If the input does not admit any possible encryption matrix output No solution. Otherwise if the input does not uniquely determine the encryption matrix output Too many solutions. Otherwise output the encryption matrix, one row per line with a single space between values on a line.
The length of the strings<=2000