Vitsy, 13 12 Bytes
Byte size reduced by newest version ending execution on end of file*.
I\[i1+2M]l\N;I\[i1+2M]l\N I\ Repeat everything in the [] for input stack's length. [i1+2M] Grab an item from the input, add 1 and modulo 2 (to invert the number). l\ Repeat the next character for the currently active program stack's length. N Output the top item of the stack as a number.
*In situations that don't involve special cases.