while~0: a=input().split();n=0;t="" for e in a:t+=" |"[n+n==sum(map(int,a))]+e;n+=int(e) print(t[1:])