fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); let n: usize = n.trim().parse().unwrap(); let mut x = String::new(); std::io::stdin().read_line(&mut x).ok(); let x: Vec = x.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let sum: isize = x.iter().sum::(); let avg: isize = sum / n as isize + if sum % n as isize == 0 { 0 } else { 1 }; x.iter().for_each(|i| { println!("{}", 50isize - (avg - i) / 2isize); }) }