Problem D
Distinctive Character

The similarity between two characters
Tira does not have a character yet. She would like to create a new, very original character so that the maximum similarity between Tira’s character and any other character is as low as possible.
Given the characters of the other players, your task is to create a character for Tira that fulfils the above requirement. If there are many possible characters, you can choose any of them.
Input
The first line of input contains two integers
Then follow
Output
Output a single line describing the features of Tira’s character in the same format as in the input. If there are multiple possible characters with the same smallest maximum similarity, any one of them will be accepted.
Sample Input 1 | Sample Output 1 |
---|---|
3 5 01001 11100 10111 |
00010 |
Sample Input 2 | Sample Output 2 |
---|---|
1 4 0000 |
1111 |