import math def checkBouncy(a): length=math.log(a,10)