$${(\rho_{vaher}(a^3 - Sa) + \rho_{liiv}Sh)g = \rho_{vesi}ga^2A}$$