Print numbers in specified format