output_description: Print the integer in Takahashi's mind after he eats all the symbols.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: import numpy as np
  
  # import pdb
  
  tmp = list(map(int, input().strip().split(" ")))
  N = tmp[0]
  K = tmp[1]
  A = list(map(int, input().strip().split(" ")))
  
  A = np.asarray(A)
  pos = np.argmin(A)
  
  """
  pos = np.where(A == A.min())[0]
  #pdb.set_trace()
  
  tmp = -1
  ans = 0
  for pos_one in pos:
      ans += np.ceil((pos_one - tmp - 1) / (K-1))
      tmp = pos_one
  
  ans += np.ceil((N - tmp - 1) / (K-1))
  print(ans.astype(np.uint64))
  """
  
  left = pos
  right = N - pos - 1
  
  if N <= K:
      print(1)
  elif right + 1 <= K and left + 1 <= K:
      print(2)
  elif right + 1 <= K:
      left -= K - (right + 1)
      left_count = np.ceil(left / (K - 1))
      right_count = np.ceil(right / (K - 1))
      print((left_count + right_count).astype(np.uint64))
  elif left + 1 <= K:
      right -= K - (left + 1)
      left_count = np.ceil(left / (K - 1))
      right_count = np.ceil(right / (K - 1))
      print((left_count + right_count).astype(np.uint64))
  else:
      left_count = np.ceil(left / (K - 1))
      hamide = K - (left % (K - 1)) - 1
      right = right - hamide
      right_count = np.ceil(right / (K - 1))
      print((left_count + right_count).astype(np.uint64))
  
problem_description: Statement
  
  There is always an integer in Takahashi's mind.
  
  Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat
  four symbols, each of which is `+` or `-`. When he eats `+`, the integer in
  his mind increases by 1; when he eats `-`, the integer in his mind decreases
  by 1.
  
  The symbols Takahashi is going to eat are given to you as a string S. The i-th
  character in S is the i-th symbol for him to eat.
  
  Find the integer in Takahashi's mind after he eats all the symbols.
samples: [{"input": "+-++", "output": "2\n    \n\n  * Initially, the integer in Takahashi's mind is 0.\n  * The first integer for him to eat is `+`. After eating it, the integer in his mind becomes 1.\n  * The second integer to eat is `-`. After eating it, the integer in his mind becomes 0.\n  * The third integer to eat is `+`. After eating it, the integer in his mind becomes 1.\n  * The fourth integer to eat is `+`. After eating it, the integer in his mind becomes 2.\n\nThus, the integer in Takahashi's mind after he eats all the symbols is 2.\n\n* * *"}, {"input": "-+--", "output": "-2\n    \n\n* * *"}, {"input": "----", "output": "-4"}]