Brainfuck, 27 2525 23 bytes
,.[->+>+<<]>[[-[<<]>[>>]<++<]>>>[+[.]>-]]] I ran it here
Uses ahere (Uses negative cellcells, get around this by adding a <<< to the beginning)
I used modulus 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters. I also copied and did modulus at the same time.
Old answeranswers:
,.[->+>+<<]>[-[<<]>[.]>-] ,.[->+>+<<]>[-[>>]>[.]<<<-] I used mod 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters.