program Main implicit none integer A, B integer X, Y read *, A, B print *, -1 * A * mod(B, 2), A * mod(B, 2) end program Main