# your code goes here
def representacao_base(x, base):
digitPos = 0
while (x > 0):
digito = x % base
print("digito %d, posição %d" % (digito, digitPos));
x //= base
digitPos += 1
representacao_base(0x10, 10)
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCgpkZWYgcmVwcmVzZW50YWNhb19iYXNlKHgsIGJhc2UpOgogIGRpZ2l0UG9zID0gMAogIHdoaWxlICh4ID4gMCk6CiAgICBkaWdpdG8gPSB4ICUgYmFzZQogICAgcHJpbnQoImRpZ2l0byAlZCwgcG9zacOnw6NvICVkIiAlIChkaWdpdG8sIGRpZ2l0UG9zKSk7CiAgICB4IC8vPSBiYXNlCiAgICBkaWdpdFBvcyArPSAxCiAgICAKcmVwcmVzZW50YWNhb19iYXNlKDB4MTAsIDEwKQ==