A simple continued fraction has the form:

where each a_i is an integer.
The continued fraction above can be written as [a_1, a_2, \ldots, a_n]. It is not difficult to show that any rational number with integers p > q > 0 can be uniquely represented by a simple continued fraction with terms, such that = [a_1, a_2, \ldots, a_{n-1}, 1], where and all a_i are positive integers.
Your task is to find and print the simple continued fraction corresponding to the given rational number.
The input consists of a series of cases, each on one line. Each line contains two integers and , separated by a space, with 10^{20} > p > q > 0.
The end of the input is indicated by a line containing .
The cases should be processed in the order they appear in the input. The output for each case consists of several lines. The first line shows the case number in the following format:
Case i:
where should be replaced with the corresponding case number.
The second line contains the input data in the format .
The following lines should contain the continued fraction corresponding to the given rational number. The continued fraction should be printed according to the following rules:
Horizontal bars are formed by sequences of '-' characters.
The length of each horizontal bar is exactly equal to the length of the denominator below it.
Spaces must be replaced by the corresponding number of '.' characters.
The numerator should be centered above the denominator; if needed, one extra placeholder may be printed on the right.
Sample output

Example 1