def main(): n = int(input()) ans = solve(n) print(ans) def solve(n): return n + n % 2 if __name__ == '__main__': main()