1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[macro_export]
macro_rules! main {
    () => {
        fn main() -> Result<(), Box<std::error::Error>> {
            use std::io::{self, Read};

            let mut input = String::new();
            io::stdin().read_to_string(&mut input)?;

            let output = solve(&input)?;
            println!("{}", output);

            Ok(())
        }
    };
}