How should I enter my foreign stock transactions on 1099-B?

I have a foreign stock account which has many transactions in the past year. I did not receive a 1099-B so it seems like I will have to calculate the total loss/income myself. But my question is, do I have to enter transaction one by one or can I report by entering "Sales section totals"?