factor.rs: add support for standard input.