import math if __name__ == '__main__': n = int(input()) print(n if n % 2 == 0 else n - 1)