The sum  in every row must give the corresponding a-value:

And here comes our real optimal transport plan with all integer values: