use std::{io, io::BufRead as _};

fn main() -> io::Result<()> {
    let mut i = 0;
    let mut buf = String::new();
    let mut reader = diamond_op::new().reader();
    while reader.read_line(&mut buf)? != 0 {
        print!("[{}] {}", i, buf);
        buf.clear();
        i += 1;
    }
    Ok(())
}
