Adding problem from SPOJ