#24377: WA(python)求解


tiffany920810 (smille)


k=int(input())

if k%2==0:

    print (k)

else:

    print(k-1)