solved problem 11 in python. note that 08 and 09 are invalid tokens in python.