Template for TopCoder SRM.