A model-independent search for deviations from the Standard Model prediction is performed in e + p and e − p collisions at HERA using H1 data corresponding to an integrated luminosity of 117 pb − 1 . For the first time all event topologies involving isolated electrons, photons, muons, neutrinos and jets with high transverse momenta are investigated in a single analysis. Events are assigned to exclusive classes according to their final state. A statistical algorithm is developed to search for deviations from the Standard Model in the distributions of the scalar sum of transverse momenta or invariant mass of final state particles and to quantify their significance. A good agreement with the Standard Model prediction is observed in most of t...