atcoder#ABC280D. [ABC280D] Factorial and Multiple
[ABC280D] Factorial and Multiple
Score : points
Problem Statement
You are given an integer greater than or equal to . Find the minimum positive integer such that is a multiple of .
Here, denotes the factorial of . Under the Constraints of this problem, we can prove that such an always exists.
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
Output
Print the minimum positive integer such that is a multiple of .
30
5
Therefore, is the minimum positive integer such that is a multiple of . Thus, should be printed.
123456789011
123456789011
280
7