(10000a+1000b+100c+10d+e)-(10000e+1000d+100c+10b+a)
=9999a+990b-990d-9999e
=99(101a+10b-10d-101e)
=99[101(a-e)+10(b-d)]
9000