n = int(input()) if 101 <= n <= 103: print(4) else: if n % 2 == 0: print(n) else: print(n + 1)