Topcoder SRM 522