An exclusive analysis of the four-body final states Lambda + p + pi(+) + K-0 and Sigma(0) + p + pi(+) + K-0 measured with HADES for p + p collisions at a beam kinetic energy of 3.5 GeV is presented. The analysis uses various phase space variables, such as missing mass and invariant mass distributions, in the four-particle event selection (p,pi(+),pi(+),pi(-)) to find cross sections of the different production channels, contributions of the intermediate resonances Delta(++) and Sigma(1385)(+), and corresponding angular distributions. A dominant resonant production is seen, where the reaction Lambda + Delta(++) + K-0 has a cross section about ten times higher (29.45 +/- 0.08(-1.46)(+1.67) +/- 2.06 mu b) than the analogous nonresonant reaction (2.57 +/- 0.02(-1.98)(+0.21) +/- 0.18 mu b). A similar result is obtained in the corresponding Sigma(0) channels with 9.26 +/- 0.05(-0.31)(+1.41) +/- 0.65 mu b in the resonant and 1.35 +/- 0.02(-1.35)(+0.10) +/- 0.09 mu b in the nonresonant reactions.