from functools import reduce


def count_printable(seq):
    """Returns the number of printable and the total number of ASCII characters in seq as a tuple"""
    printable_list = map(lambda c: 32 <= c < 127 or c == ord('\n'), seq)
    printable_total_list = map(lambda c: (1 if c else 0, 1), printable_list)
    return tuple(reduce(lambda x, y: (x[0]+y[0], x[1]+y[1]), printable_total_list, (0,0)))