
Problem
We are given n containers, where 1 <= n <= 4. At
the beginning all of them are full of water. The liter capacity of the i-th
container is a natural number oi satisfying
inequalities 1 <= oi <= 49.
Three kinds of moves can be made:
Pouring the whole content of one container into another. This move
can be made unless there is too little room in the second container.
...