Using two containers with capacities of liters and liters, you must collect liters of water in a -liter barrel so that the total number of pour operations into and out of the barrel is minimized.
For example, to obtain liters of water, you can pour liters into the barrel twice, and then pour out liters once. In total, three pour operations are performed.
One non-negative integer m~(0 \le m \le 100).
Print the minimum number of pour operations.
Example 1