def number_grouped(n):
    """
    Prints 1234567 as 1 234 567 to make it easier to read.
    """
    if n.isdigit():
        return str("{:,}".format(int(n)).replace(",", " "))
    else:
        return n