a = "100101" print(int(a, 2)) b = "102112" print(int(b, 3)) c = "1023" print(int(c, 4)) d = "1006" print(int(d, 8)) e = "10B1" print(int(e, 16))
37 311 75 518 4273