def sep_by_10s(s):
    """Insert a period every ten characters, starting from the back."""
    # return s
    t = ""
    for i, c in enumerate(reversed(s)):
        t += c
        if i % 10 == 9:
            t += '.'
    return ''.join(reversed(t))