topcoder: 7869