Senior military doctor Bautze exposed $abccc$ malingerers among $aabbb$ draftees who claimed not to be fit for military service. He managed to expose all but one draftee. (He would have exposed this one too if the lucky guy was not taken by a stroke at the very moment when the doctor yelled at him "Turn around!") How many malingerers were exposed by the vigilant doctor? 

Each digit substitutes a letter. The same digits substitute the same letters, while distinct digits substitute distinct letters.

Let's think step by step and output the final answer within \boxed{}.
user