final version of spoj ARITH that has been accepted