AdvancedRating 1800
k-th Number in a Times Table
In an m × n multiplication table (entry i·j), print the k-th smallest entry.
Input
Three integers m, n (≤ 10⁶) and k.
Output
One integer.
Sample 1
Input
3 3 5
Output
3
Sample 2
Input
2 3 6
Output
6
Output appears here