fn main() { let mut xy = String::new(); std::io::stdin().read_line(&mut xy).ok(); let xy: Vec = xy.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let x = xy[0]; let y = xy[1]; let cands = vec![(x+4)%12, (x+8)%12]; println!("{}", cands.iter().filter(|&&v| v != y).nth(0).unwrap()); }