0,"+",0,10,0,10,1,20,0,0
1,"+",5,20,5,20,10,40,0,0
2,"+",10,30,0,30,10,60,0,0
3,"+",10,40,20,50,30,90,0,0
4,"+",10,50,30,75,40,125,0,0
5,"+",100,999,100,999,200,1998,0,-1
6,"+",10,99,10,99,20,198,0,1
7,"+",100,999,100,999,200,1998,0,1
8,"+",1000,9999,1000,9999,2000,19998,0,1
9,"+",10000,99999,10000,99999,20000,199998,0,1
0,"-",0,15,0,15,0,15,-1,0
1,"-",0,30,0,30,0,30,-1,0
2,"-",10,30,10,30,0,30,-1,0
3,"-",15,50,10,20,5,40,-1,-1
4,"-",70,99,40,70,30,59,-1,-1
5,"-",100,199,100,150,0,99,-1,1
6,"-",100,999,100,999,0,899,0,1
7,"-",100,999,100,999,0,899,1,1
8,"-",1000,9999,1000,9999,0,8999,-1,1
9,"-",10000,99999,10000,99999,0,89999,-1,1
0,"*",0,12,1,2,0,12,0,0
1,"*",0,12,0,2,0,24,0,0
2,"*",0,12,3,4,0,48,0,0
3,"*",0,12,5,6,0,72,0,0
4,"*",0,12,7,8,0,96,0,0
5,"*",0,12,9,10,0,120,0,0
6,"*",0,12,11,12,0,144,0,0
7,"*",0,12,0,9,0,108,0,0
8,"*",0,12,0,12,0,144,0,0
9,"*",0,12,10,20,0,240,0,0
0,"/",1,20,1,3,1,20,0,0
1,"/",3,30,1,4,1,30,0,0
2,"/",5,40,2,5,1,20,0,0
3,"/",7,60,3,7,3,20,0,0
4,"/",8,70,4,10,2,17,0,0
5,"/",9,80,3,20,3,26,0,0
6,"/",10,100,5,10,2,20,0,0
7,"/",12,139,4,12,4,34,0,0
8,"/",15,144,3,12,5,48,0,0
9,"/",20,400,5,12,4,80,0,0
