spoj0; solve "Football" from Contest 26