timus; solve "A+B Problem" from Volume 1