x=int(input()) a=0 for i in range(x,2*x+1): if i%2==0 and i>2: print(i) a=1 break if a==0: print(-1)