Problem:
Score : 200 points

Problem Statement

In some other world, today is the day before Christmas Eve.

Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).

He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Constraints

2 \leq N \leq 10

100 \leq p_i \leq 10000

p_i is an even number.

Input

Input is given from Standard Input in the following format:

N
p_1
p_2
:
p_N

Output

Print the total amount Mr. Takaha will pay.

Sample Input 1

3
4980
7980
6980

Sample Output 1

15950

The 7980-yen item gets the discount and the total is 4980 + 7980 / 2 + 6980 = 15950 yen.

Note that outputs such as 15950.0 will be judged as Wrong Answer.

Sample Input 2

4
4320
4320
4320
4320

Sample Output 2

15120

Only one of the four items gets the discount and the total is 4320 / 2 + 4320 + 4320 + 4320 = 15120 yen.

Solution in Rust (1.15.1) (judge verdict: Accepted)

#[macro_use]
#[allow(dead_code)]
mod template {
    macro_rules! debug {
        ($($a:expr),*) => {{
            use ::std::io::Write;
            writeln!(&mut ::std::io::stderr(), concat!($(stringify!($a), " = {:?}, "),*), $($a),*).unwrap();
        }}
    }

    macro_rules! input {
        (source = $s:expr, $($r:tt)*) => {
            let mut scanner = ::template::BufScanner::new($s.as_bytes());
            input_inner!{scanner, $($r)*}
        };
        ($($r:tt)*) => {
            let stdin = ::std::io::stdin();
            let mut scanner = ::template::BufScanner::new(stdin.lock());
            input_inner!{scanner, $($r)*}
        };
    }

    macro_rules! input_inner {
        ($scanner:expr) => {};
        ($scanner:expr, ) => {};

        ($scanner:ident, $var:ident : $t:tt $($r:tt)*) => {
            let $var = read_value!($scanner, $t);
            input_inner!{$scanner $($r)*}
        };
    }

    macro_rules! read_value {
        ($scanner:ident, ( $($t:tt),* )) => {
            ( $(read_value!($scanner, $t)),* )
        };

        ($scanner:ident, [ $t:tt ; $len:expr ]) => {
            (0..$len).map(|_| read_value!($scanner, $t)).collect::<Vec<_>>()
        };

        ($scanner:ident, chars) => {
            read_value!($scanner, String).chars().collect::<Vec<char>>()
        };

        ($scanner:ident, usize1) => {
            read_value!($scanner, usize) - 1usize
        };

        ($scanner:ident, $t:ty) => {
            ($scanner).next::<$t>()
        };
    }

    pub struct BufScanner<R: ::std::io::BufRead> {
        br: R,
        buf: Vec<u8>,
        pos: usize,
    }

    impl<R: ::std::io::BufRead> BufScanner<R> {
        pub fn new(br: R) -> Self {
            BufScanner {
                br: br,
                buf: Vec::new(),
                pos: 0usize,
            }
        }
        fn fill_line(&mut self) {
            self.buf.clear();
            self.pos = 0;
            self.br
                .read_until(b'\n', &mut self.buf)
                .expect("Read a line");
            if let Some(&b'\n') = self.buf.last() {
                self.buf.pop();
                if let Some(&b'\r') = self.buf.last() {
                    self.buf.pop();
                }
            }
        }
        fn skip_space(&mut self) {
            loop {
                for i in self.pos..self.buf.len() {
                    if self.buf[i] != b' ' {
                        self.pos = i;
                        return;
                    }
                }
                self.fill_line();
            }
        }
        pub fn read_token(&mut self) -> &str {
            self.skip_space();
            let start = self.pos;
            while self.pos < self.buf.len() && self.buf[self.pos] != b' ' {
                self.pos += 1;
            }
            let ret = unsafe { ::std::str::from_utf8_unchecked(&self.buf[start..self.pos]) };
            self.pos += 1; // skip the last space (or len() + 1 which is fine)
            return ret;
        }
        pub fn next<T: ::std::str::FromStr>(&mut self) -> T {
            self.read_token().parse::<T>().ok().expect("Parse")
        }
    }
}

fn main() {
    input! {
        n: usize,
        ps: [i32; n]
    }
    let mut res: i32 = ps.iter().sum();
    res -= ps.iter().max().unwrap() / 2;
    println!("{}", res);
}