acmsguru |
---|
Закончено |
0", "
1" and "
2". Terentius is trying to register on a famous internet service site Toogle, but the problem is, according to the security policy of this service the password must contain exactly a characters "
0" and exactly b characters "
1". All other characters of the password must be "
2".
0" and the expected number of characters "
1" in the password to Toogle. The second line contains Terentius's password. All characters in this line are digits "
0", "
1" or "
2".
0", and the second line must contain Terentius's password.
-1" in the first line of the output. In this case print empty second line or don't print the second line at all.
sample input | sample output |
6 1 3 012022 | 2 111022 |
sample input | sample output |
5 5 0 02211 | 4 00000 |
Название |
---|