Task: Program Execution
Input (English): head,
P
m
H
hear
J
L
body
P
him;
S
the
C
Output (English): head,PmHhearJLbodyPhim;StheC