n=int(input()) print(max(n%2*n,(n-1)%2*n//2))