use proconio::input; fn main () { input! { a: u64, b: u64, h: u64, w: u64, } let no_rot = a*h.max(b*w); let rot = a*w.max(b*h); match (rot, no_rot) { (r, nr) if r < nr => println!("Non-rotating"), (r, nr) if r > nr => println!("Rotating"), (_, _) => println!("Same"), } }