[ Text problems ] [Algorithm theory]

Pouring milk. From an 8-liter bucket filled with milk, you need to measure out 4 liters using empty 3-liter and 5-liter buckets.
Let's record the solution in a table.

| Eight-liter  bucket | Five-liter  bucket | Three-liter  bucket |
| :---: | :---: | :---: |
| 8 |  |  |
| 3 | 5 |  |
|  | 5 |  |


| 3 | 2 | 3 |
| :---: | :---: | :---: |
| 6 | 2 |  |
| 6 |  | 2 |
| 1 | 5 | 2 |
| 4 | 4 | 3 |