500
The ballast tank in the submarine acts very similarly to the swim bladder in a fish. For both, they increase their average density to sink. The fish's bladder expels air to sink, whereas the ballast tank does this to sink.
The ballast tank fills with seawater, which pushes the air in the ballast tank through the top vents to the outside. This increases the average density of the submarine and so it sinks.