first exchange problem