Rosetta Problems

Exactly Three Bits

https://atcoder.jp/contests/arc161/tasks/arc161_b