URAL 1000 A + B Problem