a, b, c, d = [int(e) for e in input().split()]
if a > b:
    t = a
    a = b
    b = t
    if d >= a:
        if c > d:
            c -= a
    else:
        c += a
    b = a + c + d
else:
    if c > a and a >= b:
        d += a
    if d > c:
        b += 2
    else:
        b *= 2
print(a, b, c, d)

ea06783f24feb22e5bd9b1ca617a2e3cdd7be678
<mask token>

<mask token>
if a > b:
    t = a
    a = b
    b = t
    if d >= a:
        if c > d:
            c -= a
    else:
        c += a
    b = a + c + d
else:
    if c > a and a >= b:
        d += a
    if d > c:
        b += 2
    else:
        b *= 2
print(a, b, c, d)

a, b, c, d = [int(e) for e in input().split()]
if a > b:
    t = a
    a = b
    b = t
    if d >= a:
        if c > d:
            c -= a
    else:
        c += a
    b = a + c + d
else:
    if c > a and a >= b:
        d += a
    if d > c:
        b += 2
    else:
        b *= 2
print(a, b, c, d)
