Paint It !!
Time Limit: 1 sec
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 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)
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.
10 2 3 10 2 3
6 2 3 6 2 4
Problem Setter: Samia Safa Ahmed