
import java.math.BigInteger;

public class Arithmetic
{
    public static void main(String[] args)
    {
        BigInteger a = new BigInteger("99999999999999999999");
        BigInteger b = new BigInteger("12345678901234567890");
        BigInteger c;
        
        c = a.add(b);
        System.out.println(c);
        
        c = a.subtract(b);
        System.out.println(c);
        
        c = a.multiply(b);
        System.out.println(c);
        
        c = a.divide(b);
        System.out.println(c);
        
        c = a.remainder(b);
        System.out.println(c);

    }
}
