What two bodies surround the panama and is the capitol too?

The carribean sea also the atlantic ocean on the other side pacific ocean