Task: Program Execution
Input (English): 7175, 3163, 1915, 5961, s, 511, 7995, 4025, 4771, X, J, a, 4745, T, 3183, N, 2675, 7265, M, h
Output (English): 12