x = int(input()) if x == 1: print(-1) elif x == 2: print(4) else: for i in range(x, 2*x+1): if i%2==0: print(i) break