#include <stdio.h>
#include <stdlib.h>
int const SEED = 31415926;
int main() {
int c;
int count0, count1;
count0 = count1 = 0;
while ((c
= fgetc(stdin
)) != EOF
) { if (c == '0')
count0++;
else if (c == '1')
count1++;
}
while (count0 > 0 || count1 > 0) {
int f;
f
= (int)((double)rand() / ((double)RAND_MAX
+ 1) * (count0
+ count1
)); if (f >= count0) {
count1--;
} else {
count0--;
}
}
return 0;
}
/* end */
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBjb25zdCBTRUVEID0gMzE0MTU5MjY7CmludCBtYWluKCkgewogIGludCBjOwogIGludCBjb3VudDAsIGNvdW50MTsKICBzcmFuZChTRUVEKTsKICBjb3VudDAgPSBjb3VudDEgPSAwOwogIHdoaWxlICgoYyA9IGZnZXRjKHN0ZGluKSkgIT0gRU9GKSB7CiAgICBpZiAoYyA9PSAnMCcpCiAgICAgIGNvdW50MCsrOwogICAgZWxzZSBpZiAoYyA9PSAnMScpCiAgICAgIGNvdW50MSsrOwogIH0KICB3aGlsZSAoY291bnQwID4gMCB8fCBjb3VudDEgPiAwKSB7CiAgICBpbnQgZjsKICAgIGYgPSAoaW50KSgoZG91YmxlKXJhbmQoKSAvICgoZG91YmxlKVJBTkRfTUFYICsgMSkgKiAoY291bnQwICsgY291bnQxKSk7CiAgICBpZiAoZiA+PSBjb3VudDApIHsKICAgICAgZnB1dGMoJzEnLCBzdGRvdXQpOwogICAgICBjb3VudDEtLTsKICAgIH0gZWxzZSB7CiAgICAgIGZwdXRjKCcwJywgc3Rkb3V0KTsKICAgICAgY291bnQwLS07CiAgICB9CiAgfQogIHJldHVybiAwOwp9Ci8qIGVuZCAqLwo=