newton/solutions/rust/236A.rs

16 lines
326 B
Rust

use std::io;
use std::collections::HashSet;
fn main() {
let mut s = String::new();
io::stdin().read_line(&mut s).unwrap();
let mut seen = HashSet::new();
s.retain(|c| seen.insert(c));
if s.trim().len() % 2 != 0 {
println!("IGNORE HIM!");
} else {
println!("CHAT WITH HER!");
}
}