Topcoder HaarID problem