시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 213 120 105 57.692%

## 문제

N이 주어졌을 때, N!/10M이 정수가 되는 M 중 가장 큰 것을 출력하시오.

## 입력

각 줄에 5 ≤ N ≤ 106인 N이 있다. 입력의 마지막에는 0이 주어진다.

## 출력

각 줄에 Case #x: M의 형태로 (x는 1부터 시작한다) 가장 큰 M을 출력한다.

## 예제 입력 1

5
10
118
0


## 예제 출력 1

Case #1: 1
Case #2: 2
Case #3: 27


## 힌트

시파르(Sifar)는 말레이어로 0을 뜻한다고 한다.

W3sicHJvYmxlbV9pZCI6Ijk2OTMiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWMyZGNcdWQzMGNcdWI5NzQiLCJkZXNjcmlwdGlvbiI6IjxwPk5cdWM3NzQgXHVjOGZjXHVjNWI0XHVjODRjXHVjNzQ0IFx1YjU0YywgTiFcLzEwPHN1cD5NPFwvc3VwPlx1Yzc3NCBcdWM4MTVcdWMyMThcdWFjMDAgXHViNDE4XHViMjk0IE0mbmJzcDtcdWM5MTEgXHVhYzAwXHVjN2E1IFx1ZDA3MCBcdWFjODNcdWM3NDQgXHVjZDljXHViODI1XHVkNTU4XHVjMmRjXHVjNjI0LjxcL3A+XHJcbiIsImlucHV0IjoiPHA+XHVhYzAxIFx1YzkwNFx1YzVkMCZuYnNwOzUgJmxlOyBOICZsZTsgMTA8c3VwPjY8XC9zdXA+XHVjNzc4IE5cdWM3NzQmbmJzcDtcdWM3ODhcdWIyZTQuIFx1Yzc4NVx1YjgyNVx1Yzc1OCBcdWI5YzhcdWM5YzBcdWI5YzlcdWM1ZDBcdWIyOTQmbmJzcDswXHVjNzc0IFx1YzhmY1x1YzViNFx1YzljNFx1YjJlNC48XC9wPlxyXG4iLCJvdXRwdXQiOiI8cD5cdWFjMDEgXHVjOTA0XHVjNWQwIENhc2UgI3g6IE1cdWM3NTggXHVkNjE1XHVkMGRjXHViODVjICh4XHViMjk0IDFcdWJkODBc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