spoj classical problems