Task: Program Execution
Input (English): 2461 F 3377 161 P s J B l I 8359 4257 J j 9527 A G 2741 6479 D F s c z 5825 d p 8289 p 1273 5513 f 131 5229 p 7397 9703
Output (English): 21