Added SPOJ's SUM1.