1906 : yifan and Zeroes

时间限制:1 Sec 内存限制:128 MiB
提交:40 答案正确:12

提交 状态 讨论区

题目描述

 One of My Teammates asd encountered a difficult problem recently. Given an integer q, he wants to now whether there is an integer n that n! contains q zeroes on the trail in decimal notation and n is minimal.

输入

Input starts with an integer T(T <= 20000),denoting the number of test cases.   Each test case contains an integer q (1 <= q <= 10^8)

输出

For each case, print the case number and your answer, if no solution is found then print "I need anwei".

样例输入

复制
3
1
2
5

样例输出

复制
Case 1: 5
Case 2: 10
Case 3: I need anwei

提示


			

来源

[Fjnu]yifan