complete maxsum