Limit printouts to sane number in I/O lesson