use std::io::{self, Write, BufRead}; fn main() { let stdin = io::stdin(); let mut lines = stdin.lock().lines(); io::stdout().flush().unwrap(); // プロンプトを即座に表示 let s = lines.next().unwrap().unwrap(); io::stdout().flush().unwrap(); // プロンプトを即座に表示 let t = lines.next().unwrap().unwrap(); let a = "watermelon"; let b = "shrinebell"; let c = "beachball"; if a!=s && a!=t{ println!("{}", a); } if b!=s && b!=t{ println!("{}", b); } if c!=s && c!=t{ println!("{}", c); } }