高精度题目
import java.math.BigInteger;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner=new Scanner(System.in);
BigInteger a=scanner.nextBigInteger();
BigInteger b=scanner.nextBigInteger();
BigInteger f=scanner.nextBigInteger();
BigInteger c=BigInteger.ONE;
c=a.multiply(b);
c=c.mod(f);
System.out.println(c);
}
}