Shadowing on Outgoing Protons in (π, p) and (γ, p) Reactions