fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let s: Vec<_> = s.trim().split(&['(', ')']).collect(); println!("{}@{}", s[0], s[2]); }