Python 2, 105 8282 81 bytes
i,x=map(int,input()),1 for y in i[:0:-1]: if i[0]%10>=yi[0]%10<y:i[0]+=yx=0 else:x=0i[0]+=y print x Many thanks for a massive -23 from @ØrjanJohansen
Thanks to @VedantKandoi (and @ØrjanJohansen) for another -1