#PCBSAU0000022. Hóa đơn mua hàng (Purchase Receipt)

Hóa đơn mua hàng (Purchase Receipt)

Purchase Receipt

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

A receipt has two items with integer quantity and unit price. Calculate subtotal, fixed 10% VAT and final amount, printing each with two decimals.

Input

One line containing q1,p1,q2,p2q_1,p_1,q_2,p_2, quantity and price of each item.

Output

Print subtotal, VAT and final amount on three separate lines.

Subtask

  • Subtask 1 — 100 points: 0≤q1,q2≤10000\le q_1,q_2\le1000; 0≤p1,p2≤100000\le p_1,p_2\le10000; VAT 10%.

Example

Input

2 100 1 250

Output

450.00
45.00
495.00

Explanation

Item subtotals are 200200 and 250250, giving subtotal 450450, VAT 4545 and final amount 495495.