Solutions of spoj.com