The effective Shafarevich conjecture