Solve problem 16 with binary shortcut.