Amazon ekes out a profit—as is its wont