0,"+",0,6,0,6,0,6,0,0
1,"+",0,9,0,9,0,9,0,0
2,"+",0,12,0,12,0,12,0,0
3,"+",0,18,0,18,0,18,0,0
4,"+",10,99,10,99,20,198,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,6,0,6,0,6,-1,0
1,"-",0,9,0,9,0,9,-1,0
2,"-",0,18,0,18,0,18,-1,0
3,"-",9,18,8,9,0,10,-1,-1
4,"-",100,999,100,999,0,899,-1,-1
5,"-",10,99,10,99,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,0,0,0
1,"*",0,12,0,2,0,0,0,0
2,"*",0,12,3,4,0,0,0,0
3,"*",0,12,5,6,0,0,0,0
4,"*",0,12,7,8,0,0,0,0
5,"*",0,12,9,10,0,0,0,0
6,"*",0,12,11,12,0,0,0,0
7,"*",0,12,0,9,0,0,0,0
8,"*",0,12,0,12,0,0,0,0
9,"*",0,12,10,99,0,0,0,0
0,"/",1,12,1,2,1,12,0,0
1,"/",3,16,1,2,1,16,0,0
2,"/",5,20,2,5,1,10,0,0
3,"/",7,25,3,7,7,8,0,0
4,"/",8,35,4,10,2,8,0,0
5,"/",9,40,5,20,3,8,0,0
6,"/",10,55,6,9,3,9,0,0
7,"/",12,75,6,12,7,12,0,0
8,"/",15,100,8,12,5,12,0,0
9,"/",20,144,6,12,4,24,0,0
