348 - Paint It !!

Paint It !!

Time Limit: 1 sec


The Problem

Sam wants to paint her room. There is a door and window in her room. She wants to paint blue in all the four walls and white in window and door. For 1 m2 area she needs half can of color.

You have to find numbers of white cans and blue cans she needs to paint the room. 



The Input

The input file contains several lines. Each line contains 6 integer numbers w1, w2, w3 width of a wall, door and window respectively and h1, h2, h3 height of wall, door and window respectively. All values are ranged 0 to 15. Input is terminated by end of file (EOF)


The Output

For each line of input the output will print two values, number of blue cans and white cans separated by a space rounded to 1 decimal points in a separate line.


Sample Input

10 2 3 10 2 3

6 2 3 6 2 4


Sample Output

200.0 6.5

72.0 8.0





Problem Setter: Samia Safa Ahmed