how do you solve:

input __ 16 22 50 8 30

output 10 11 14 28 __ 18

(hint: divide and add)

divide by 2 and add 3