output_description: Print the minimum positive integer divisible by both 2 and N.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
attempt: n = int(input())
  A = list(map(int, input().split()))
  q = 0
  Z = []
  for b in range(max(A) - min(A)):
      q = 0
      for j in range(n):
          q += abs(A[j] - b - min[A] - j - 1)
      Z.append(q)
  print(min(Z))
  
problem_description: Statement
  
  You are given a positive integer N. Find the minimum positive integer
  divisible by both 2 and N.
samples: [{"input": "3", "output": "6\n    \n\n6 is divisible by both 2 and 3. Also, there is no positive integer less than 6\nthat is divisible by both 2 and 3. Thus, the answer is 6.\n\n* * *"}, {"input": "10", "output": "10\n    \n\n* * *"}, {"input": "999999999", "output": "1999999998"}]