output_description: Print the maximum possible value of floor(Ax/B) - A × floor(x/B) for a non-
  negative integer x not greater than N, as an integer.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B N
attempt: a, b, n = map(int, input().split())
  Max = 0
  e = 1 / b
  ae = a * e
  axb = 0
  xb = 0
  temp = 0
  h_cut = 0
  u_cut = 0
  for i in range(n):
      axb += ae
      xb += e
      h_cut = axb - int(axb)
      u_cut = (xb - int(xb)) * a
      temp = int(u_cut - h_cut)
      Max = max(Max, temp)
  else:
      print(Max)
  
problem_description: Statement
  
  Given are integers A, B, and N.
  
  Find the maximum possible value of floor(Ax/B) - A × floor(x/B) for a non-
  negative integer x not greater than N.
  
  Here floor(t) denotes the greatest integer not greater than the real number t.
samples: [{"input": "5 7 4", "output": "2\n    \n\nWhen x=3, floor(Ax/B)-A\u00d7floor(x/B) = floor(15/7) - 5\u00d7floor(3/7) = 2. This is\nthe maximum value possible.\n\n* * *"}, {"input": "11 10 9", "output": "9"}]