The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
1 7 15
36
53
10
0
Output
36 litres require 2 jar(s) of 15, 6 jar(s) of 1
53 litres require 3 jar(s) of 15, 1 jar(s) of 7, 1 jar(s) of 1
10 litres require 1 jar(s) of 7, 3 jar(s) of 1
Input
1 7 15
36
53
10
0
Output
36 litres require 2 jar(s) of 15, 6 jar(s) of 1
53 litres require 3 jar(s) of 15, 1 jar(s) of 7, 1 jar(s) of 1
10 litres require 1 jar(s) of 7, 3 jar(s) of 1