21-bit to Integer Converter

Enter exactly 21 bits. The app follows your rule set and subtracts 1,000,000 at the end.