use std::io::*; use std::str::*; fn read(sl: &mut StdinLock) -> Option { let s = sl.by_ref().bytes().map(|c| c.unwrap() as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect::(); s.parse::().ok() } fn run(sl: &mut StdinLock) { let n = read::(sl).unwrap(); let k = read::(sl).unwrap(); // 0=rock, 1=scissors, 2=paper if n == k { println!("Drew"); } else if ((n + 1) % 3) == k { println!("Won"); } else { println!("Lost"); } } fn main() { let s = stdin(); let mut sl = s.lock(); run(&mut sl); }