while 1: *b,=map(int,input().split());a=sum(b)/2 while b:print(b.pop(0),end=b and' |'[sum(b)==a]or'\n')