import java.util.Scanner; class no192{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); int n=stdIn.nextInt(); System.out.print(n%2>0?n-1:n); } }