RSU cost basis values were not imported from 1099-b

The RSU cost basis values were not imported from 1099-b, leading to a large gain that should have been a loss.  There were three sales, and a total of 22 lots with different purchase dates and cost bases.   Do I need to enter all of these manually?