public class No_192 { public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); int n = sc.nextInt(); if (n % 2 != 0) { n -= 1; } System.out.println(n); sc.close(); } }