DWITE Contest

Test Case for Question #1 in DWITE 2008-2009 High School Round 4

Contest: DWITE 2008-2009 High School Round 4
Question: #1
Input File: DATA1.txt
Output File: OUT1.txt


Input

0
5
5
0
-5
-5
5
5
2
5




Output

50,50
100,25
25,0
75,50
60,50