#P10446. 64位整数乘法

64位整数乘法

Description

aabbpp 取模的值。

Input Format

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

Output Format

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

3
4
5
2

Hint

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