Task: Program Execution
Input (English): ten, N, D, A, next, t, army., z, him, E
Output (English): tenNDAnexttarmy.zhimE