Effect of the coupling to a superconductor on the level statistics of a metal grain in a magnetic field.