use std::io::*; use std::str::FromStr; fn read() -> T { let stdin = stdin(); let stdin = stdin.lock(); let token: String = stdin .bytes() .map(|c| c.expect("failed to read char") as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect(); token.parse().ok().expect("failed to parse token") } fn main() { let a: i64 = read(); // (*) let b: i64 = read(); let mut ans = String::new(); if a-b == 0 { ans = String::from("Drew"); } if a-b == -2 { ans = String::from("Lose"); } if a-b == 1 { ans = String::from("Lose"); } else {ans = String::from("Won");} let ans = a * (a+1)/2; println!("{}", ans); }