wash sales

I purchased and sold 3 stocks within a 30 day period. The first was a gain and the other 2 were losses. If I understand correctly, the1st loss is disallowed and added to the basis of the 2nd loss. I believe the 2nd loss is also disallowed, but what happens to the 2nd loss amount? There were no other purchases of that stock.