output_description: Print the maximum angle in which we can tilt the bottle without spilling any
  water, in degrees. Your output will be judged as correct when the absolute or
  relative error from the judge's output is at most 10^{-6}.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      a b x
attempt: def resolve():
      import sys
  
      input = sys.stdin.readline
      # 整数 1 つ
      # n = int(input())
      # 整数複数個
      a, b, x = map(int, input().split())
      # 整数 N 個 (改行区切り)
      # N = [int(input()) for i in range(N)]
      # 整数 N 個 (スペース区切り)
      # N = list(map(int, input().split()))
      # 整数 (縦 H 横 W の行列)
      # A = [list(map(int, input().split())) for i in range(H)]
  
      import math
      import bisect
  
      # 台形の場合
      if 2 * x / (a**2) >= b:
          Down = [
              (x / (a**2) + a * math.tan(math.pi * i / (2 * 9 * 10**5)) / 2)
              for i in range(9 * 10**5)
          ]
          ind = bisect.bisect_left(Down, b)
  
      # 三角形の場合
      else:
          Down = [
              math.sqrt(2 * x / a * math.tan(math.pi * i / (2 * 9 * 10**5)))
              for i in range(9 * 10**5)
          ]
          ind = bisect.bisect_left(Down, b)
  
      print(float(ind / 1000))
  
  
  resolve()
  
problem_description: Statement
  
  Takahashi has a water bottle with the shape of a rectangular prism whose base
  is a square of side a~\mathrm{cm} and whose height is b~\mathrm{cm}. (The
  thickness of the bottle can be ignored.)
  
  We will pour x~\mathrm{cm}^3 of water into the bottle, and gradually tilt the
  bottle around one of the sides of the base.
  
  When will the water be spilled? More formally, find the maximum angle in which
  we can tilt the bottle without spilling any water.
samples: [{"input": "2 2 4", "output": "45.0000000000\n    \n\nThis bottle has a cubic shape, and it is half-full. The water gets spilled\nwhen we tilt the bottle more than 45 degrees.\n\n* * *"}, {"input": "12 21 10", "output": "89.7834636934\n    \n\nThis bottle is almost empty. When the water gets spilled, the bottle is nearly\nhorizontal.\n\n* * *"}, {"input": "3 1 8", "output": "4.2363947991\n    \n\nThis bottle is almost full. When the water gets spilled, the bottle is still\nnearly vertical."}]