input 10 15 21 6 29 ___

output 12 22 ___ 4 50 2

please help me solve this