TopCoder SRM 634