n = int(input()) res = n for x in range(n, n + 2): if n % 2 == 0: res = x break print(res)