How to solve this problem

Hello codechef users!
I’m trying to solve this problem.


Help, please. I cant understand how to solve it.

Look at http://discuss.codechef.com/questions/58386/please-explain-the-rins-network-flow-solution