The input comes as array of string elements. Each element is one row in a formatted table.
['| Sofia | 300',
'| Veliko Tarnovo | 500',
'| Yambol | 275']
Sofia, Veliko Tarnovo, Yambol
The output is printed on the console on two lines. On the first line, print a comma-separated list of all towns and on the second, the sum of all incomes.