1
2
47
168
151
143
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub BigInteger a,b; Scanner cin = new Scanne...