dimension_map = dict((c, ord(c) - ord('a') + 1) for c in 'abcdefghij')