Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/jadvalda-k-necha-marta

How many times k is in the table

Medium 1000 ms 64 MB 44%
Share

There is a multiplication table with $n$ rows and $m$ columns: the cell at row $i$ and column $j$ contains $i \cdot j$. In how many cells of the table does the number $k$ appear?

A multiplication table: the cells equal to k are highlighted

Input

One line with three positive integers: $n$, $m$ and $k$.

Output

One integer — the number of cells containing $k$.

Note

$1 \le n, m \le 10^{5}$
$1 \le k \le 10^{10}$

Examples

Input #1
4 6 12
Output #1
3
Input #2
3 3 7
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.