9705번 - CHARITY BOOTH RENTAL

시간 제한

메모리 제한

제출

정답

맞은 사람

정답 비율

1 초

128 MB

0

0

0

0.000%

문제

The Kajang Municipal Council is organising a fundraising event to raise money for charity. The council plans to provide booth spaces for rent to government agencies (GA), private companies (PC) and the general public (GP) who wish to participate in that event. The organiser has decided to allocate booth spaces as follows:

0 < booth spaces for GP < booth spaces for GA < booth spaces for PC

As an example, for 10 booth spaces, the following allocations are possible

Write a program to calculate the number of possible allocations given the number of booth spaces.

입력

Each case is the number of booth spaces T where 6 <= T <= 1000000. The input is terminated with a 0.

출력

For each test case, the output contains a line in the format Case #x: M, where x is the case number (starting from 1) and M is the number of booth spaces and the answer with a colon (':') separating them. The output for each case must be printed on a separate line.