x = int(input())
print(2*x if x != 1 else -1)