spoj0; solve "Odds" from Contest 117