use std::io::{self, Read}; use std::collections::HashMap; fn read_stdin() -> Vec { let mut buffer = String::new(); io::stdin().read_to_string(&mut buffer).ok(); buffer.trim().split('\n').map(|s| s.to_string()).collect() } fn main() { let mut hm = HashMap::new(); hm.insert("0", "1"); hm.insert("1", "2"); hm.insert("2", "0"); let raw = read_stdin(); let input: Vec<&str> = raw[0].split(' ').collect(); let me = &input[0]; let you = &input[1]; println!("{}", if me == you { "Drew" } else if &hm.get(me).unwrap() == &you { "Won" } else { "Lost" } ) }