use std::cmp;

fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    let vec_str: Vec<String> = s.trim().split_whitespace().map(|x| x.to_string()).collect();
    let N = vec_str[0].parse::<i32>().unwrap();
    
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    let vec_str: Vec<String> = s.trim().split_whitespace().map(|x| x.to_string()).collect();
    let mut a_vec: Vec<i32> = vec_str.iter().map(|x| x.parse::<i32>().unwrap()).collect();

    let mut max = 0;

    a_vec.sort();

    println!("{:?}", a_vec);
    println!("{:?}", a_vec.iter().fold(a_vec[0] as f64,|sum, x| (sum + *x as f64)/2.0));



}
