You have two 4 liter jugs and one 5 liter jug. All of them are empty.
You can fill up a jug to its full capacity, empty it or pour one jug into another one until the jug you pour into is full or the jug you pour from is empty.
Find the shortest sequence of filling, emptying and pouring that results in 2 liters in both 4 liter jugs.