#LC003. #C.阶乘
#C.阶乘
Title Description
There are positive integers , and their product is . You can multiply by a positive integer , so that is exactly the factorial of the positive integer , and find the minimum value of .
Input format
Two lines in total. The first line contains a positive integer . The second line contains positive integers .
Output format
There is one positive integer in each row.
Example
1
6
3
Data scale and agreement
For data of , ;
For data of , ;
For data of , .