import sys
from functools import reduce
print('({a[0][0]}, {a[1][1]}), ({a[0][0]}, {a[0][1]}), ({a[1][0]}, {a[0][1]}), ({a[1][0]}, {a[1][1]})'.format(a=list(reduce(lambda a, l: [[min(a[0][0], l[0]-l[2]), max(a[0][1], l[1]+l[2])], [max(a[1][0], l[0]+l[2]), min(a[1][1], l[1]-l[2])]], list(map(lambda e: list(map(float, e.split( ',' ))), sys.stdin)), [[0,0], [0,0]]))))
aW1wb3J0IHN5cwpmcm9tIGZ1bmN0b29scyBpbXBvcnQgcmVkdWNlCnByaW50KCcoe2FbMF1bMF19LCB7YVsxXVsxXX0pLCAoe2FbMF1bMF19LCB7YVswXVsxXX0pLCAoe2FbMV1bMF19LCB7YVswXVsxXX0pLCAoe2FbMV1bMF19LCB7YVsxXVsxXX0pJy5mb3JtYXQoYT1saXN0KHJlZHVjZShsYW1iZGEgYSwgbDogW1ttaW4oYVswXVswXSwgbFswXS1sWzJdKSwgbWF4KGFbMF1bMV0sIGxbMV0rbFsyXSldLCBbbWF4KGFbMV1bMF0sIGxbMF0rbFsyXSksIG1pbihhWzFdWzFdLCBsWzFdLWxbMl0pXV0sIGxpc3QobWFwKGxhbWJkYSBlOiBsaXN0KG1hcChmbG9hdCwgZS5zcGxpdCggJywnICkpKSwgc3lzLnN0ZGluKSksIFtbMCwwXSwgWzAsMF1dKSkpKQ==
MSwxLDIKMiwyLDAuNQotMSwtMywyCjUsMiwx
1,1,2
2,2,0.5
-1,-3,2
5,2,1