#2756. 龟速乘

龟速乘

Background

求 aa 乘 bb 对 pp 取模的值。

Input

第一行输入整数aa,第二行输入整数bb,第三行输入整数pp。

Output

输出一个整数,表示a*b mod p的值。

Samples

3 4 5
2

Limitation

1≤a,b,p≤10181 \le a,b,p \le 10^{18}