Result

AC

Code [DL]

while read -n1 C;do $((++a[C]));done;for i in {0..10};do for((j=a[i];j;j--));do o+=$i;done;done;echo $o

stdin

0126099904603738737429752592118102162813423003190420632580378565785162970367567108211778586899252376

stdout

0000000000001111111111122222222222223333333333444455555555566666666667777777777778888888888999999999

stderr

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/code.bash: line 1: 1: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 1: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 2: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 3: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 10: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 4: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 5: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 6: command not found
/code.bash: line 1: 10: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 11: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 12: command not found
/code.bash: line 1: 7: command not found
/code.bash: line 1: 11: command not found
/code.bash: line 1: 10: command not found
/code.bash: line 1: 11: command not found
/code.bash: line 1: 10: command not found
/code.bash: line 1: 11: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 10: command not found
/code.bash: line 1: 8: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 12: command not found
/code.bash: line 1: 9: command not found
/code.bash: line 1: 13: command not found
/code.bash: line 1: 10: command not found
/code.bash: line 1: 12: command not found
/code.bash: line 1: 10: command not found

strace