spoj problem solutions