Solutions to SPOJ problems goes here