Task: Program Execution
Input (English): X 5205 1021 7573 2265 N 6091 M 9043 l j v Z J d 5033 G a u 2989 1243 8267 a 7545 4221 l h 9709
Output (English): 15