The production of Dβ, D+, D0, Dsβ and Ξcβ charm hadrons in ep scattering at HERA was studied with the ZEUS detector, and the fractions of c quarks hadronizing as a particular charm hadron were derived. The measurement has been performed in the photoproduction regime, using the full HERA II data set with a total integrated luminosity of 372 pbβ1. The obtained fractions are compared to previous results from HERA and from e+eβ experiments