Added solution to 2 spoj problems