Use magic values S and Z to recognize and print numbers.