keep writing turns until either B or A reaches 0 or less HP you may not stop outputting turns until B or A reaches 0 or less HP