program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: n
    read*, n
    if(mod(n,2) == 0) then
        print'(i0)', n
    else
        print'(i0)', n*2
    end if
end program main