Ieumjul

Given a rectangle's width and height, compute the dimensions of the poster after the folded shape is determined geometrically.

Medium4GeometryMathImplementationNo attempts yetTime limit1sMemory limit64 MB

Problem

Ieumjul is the 49th student council leadership team of Korea University. During last autumn's campaign, Ieumjul handed out this poster.

The folded parts of the poster open up. Once every fold is opened, the poster is a single rectangular sheet.

Jino was impressed by the poster and wants to make a similar one. All Jino has is one rectangular sheet that is HHcm wide and VVcm tall. What size of poster comes out when Jino folds that sheet?

The folding goes like this. Label the corners of the sheet AA, BB, CC, DD counterclockwise, starting at the bottom left corner. Sides ABAB and CDCD are the horizontal sides of length HH, and sides BCBC and DADA are the vertical sides of length VV.

  1. Fold along a line through AA so that side ABAB lands on the diagonal ACAC. This fold line bisects angle BACBAC and meets side BCBC.
  2. Fold along a line through CC so that side CDCD lands on the diagonal CACA. This fold line bisects angle DCADCA and meets side DADA. Both flaps go to the back.
  3. After the two folds, what is left is a parallelogram whose long sides are the two fold lines. Fold that parallelogram in half along its length and the poster is done. The finished poster is a rectangle. Its width is half the length of one fold line, and its height is the distance between the two fold lines.

Input

The first line has the width HH and the height VV of the sheet, separated by a space. Both values are given with two digits after the decimal point, and 1.00V<H1000.001.00 \le V < H \le 1000.00.

Output

Print the width and the height of the finished poster in centimeters on one line, separated by a space. Round both values at the third digit after the decimal point and print two digits after the decimal point. Keep a trailing zero instead of dropping it.