Integrability of superharmonic functions and subharmonic functions