i'm assuming you mean mg not g, and no, you will be fine. So long as you do not take more that the maximum dose, you can take ibuprofen and paracetamol at the same time because they act differently.

if you really do mean g then you are screwed, but that would be some really big pills, 400g is nearly half a kilo ;)