Task: Program Execution
Input (English): lances,
O
o
he
g
bag;
b
Greeks
n
Output (English): lances,Oohegbag;bGreeksn