xs = [1, 20, 20 * 18, 20 * 18 * 20, 20 * 18 * 20 * 20, 20 * 18 * 20 * 20]
def maya(n):
    if n == 0:
        return [0]
    i = 0
    while xs[i + 1] <= n:
        i += 1
    ans = []
    while n > 0:
        q, r = divmod(n, xs[i])
        ans.append(q)
        n = r
        i -= 1
    ans.extend([0] * (i + 1))
    return ans[::-1]
dct = ["  O  ", "  .  ", " ..  ", " ... ", ".... ", "-----",
       "  .  \n-----", " ..  \n-----", " ... \n-----", 
       ".... \n-----", "-----\n-----", "  .  \n-----\n-----",
       " ..  \n-----\n-----", " ... \n-----\n-----", 
       ".... \n-----\n-----", "-----\n-----\n-----",
       "  .  \n-----\n-----\n-----", " ..  \n-----\n-----\n-----",
       " ... \n-----\n-----\n-----", ".... \n-----\n-----\n-----"
      ]
print(len(dct))
# 1,2,3,4,5,6,11,20,350,360,710,720,7199,7200
for n in (1,2,3,4,5,6,11,20,350,360,710,720,7199,7200):
    s = maya(n)
    print(s)
    r = '\n\n'.join(dct[x] for x in s)
    print(r)
    print("##########################")

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: