input = '[23 45 6]'
asString = ', '.join(input.split())
print(asString)
asList = eval(asString)
print(asList)