Topcoder: 12045