use std::{
    collections::{BTreeSet, HashMap},
    hash::Hash,
};

fn main() {
    proconio::input! {
        n: i16,
    }
    println!("{}", n & -2);
}