def a5m(s):
    """Returns acronym built from first and last letters and number of chars between.

    >>> print (a5m ("acronym"))
    a5m
    """
    l = len(s)
    return '%s%s%s' % (s[0], l - 2, s[-1]) if l > 3 else s
