fork download
  1. # your code goes here
  2. def from_base_ten(arb, base):
  3. # Special cases
  4. if arb == 0:
  5. return [0]
  6. if abs(base) == 1:
  7. return [0] * arb
  8. # Main routine
  9. base_list = []
  10. it = reversed(from_base_ten(arb, base * base) if abs(arb) >= abs(base) else [arb])
  11. digit = next(it)
  12. clock = 0
  13. work = 0
  14. while clock >= 0 or work != 0:
  15. if clock == 0:
  16. work += digit
  17. try:
  18. digit = next(it)
  19. clock = 2
  20. except StopIteration:
  21. digit = 0
  22. clock -= 1
  23. work, remainder = divmod(work, base)
  24. if remainder < 0:
  25. work += 1
  26. remainder -= base
  27. if work == -1 and base > 0:
  28. work = 0
  29. remainder -= base
  30. base_list.append(remainder)
  31. return base_list[::-1]
  32.  
  33. from_base_ten(1,0)
Runtime error #stdin #stdout #stderr 0.03s 10296KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 33, in <module>
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 10, in from_base_ten
  File "./prog.py", line 4, in from_base_ten
RuntimeError: maximum recursion depth exceeded in comparison