spoj 70 - working nad passing tests