Examples of inputs and outputs:
Input: 3 7 20
Output: 1
Input: 17 2 1651
Output: 34
Input: 4 3 5
Output: 2
Input: 1000000000 1000000000 1000000007
Output: 49
Input: 27 37 100
Output: 99
Examples of inputs and outputs:
Input: 3 7 20
Output: 1
Input: 17 2 1651
Output: 34
Input: 4 3 5
Output: 2
Input: 1000000000 1000000000 1000000007
Output: 49
Input: 27 37 100
Output: 99
The function is:
f(a,b,c) = (a*b) %c where % is the modulo operation
How:
f(3,7,20) = 21%20 = 1
f(17,2,1651) = 34%1651 = 34
f(4,3,5) = 12%5 = 2
f(1000000000,1000000000,1000000007) = 10^18 % 1000000007 = 49
f(27,37,100) = 999%100 = 99